mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-11 21:56:17 +00:00
3f7fff56e8
-Exclude methods and classes that cannot be meaningfully covered -Add a simple test for AbuseFilterServices -Exclude ServiceWiring because there's no way to tell PHPUnit it's covered Change-Id: I4c67b0d3fea68c7a3b3cbe01b5608f87e1b492db
22 lines
421 B
PHP
22 lines
421 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\AbuseFilter\Filter;
|
|
|
|
use RuntimeException;
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
class FilterNotFoundException extends RuntimeException {
|
|
/**
|
|
* @param int $filter
|
|
* @param bool $global
|
|
*/
|
|
public function __construct( int $filter, bool $global ) {
|
|
$msg = $global
|
|
? "Global filter $filter does not exist"
|
|
: "Filter $filter does not exist";
|
|
parent::__construct( $msg );
|
|
}
|
|
}
|