mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-11 13:46:42 +00:00
ab2ad164ff
Add a lot more unit tests, improve code testability, remove duplicated integration tests. Change-Id: Id8c9266ae107217047f267296070f26f575889d1
18 lines
375 B
PHP
18 lines
375 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\AbuseFilter\Consequences;
|
|
|
|
use RuntimeException;
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
class ConsequenceNotPrecheckedException extends RuntimeException {
|
|
public function __construct() {
|
|
parent::__construct(
|
|
'Consequences that can disable other consequences should ' .
|
|
'use shouldDisableOtherConsequences() before execute()'
|
|
);
|
|
}
|
|
}
|