X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FSanitizerValidateEmailTest.php;h=c4e430848bc99eb02688e4c721c31378c0b1b61a;hp=f47e74e2872721dc33c0b253f2ffaab209bebc8e;hb=0898ab0a5d99c0d92c83d26d8b8b090f76e023de;hpb=fc1ca75323b5f424a9f8d28d42d85a311ed2f721 diff --git a/tests/phpunit/includes/SanitizerValidateEmailTest.php b/tests/phpunit/includes/SanitizerValidateEmailTest.php index f47e74e287..c4e430848b 100644 --- a/tests/phpunit/includes/SanitizerValidateEmailTest.php +++ b/tests/phpunit/includes/SanitizerValidateEmailTest.php @@ -5,7 +5,9 @@ * @todo all test methods in this class should be refactored and... * use a single test method and a single data provider... */ -class SanitizerValidateEmailTest extends PHPUnit_Framework_TestCase { +class SanitizerValidateEmailTest extends PHPUnit\Framework\TestCase { + + use MediaWikiCoversValidator; private function checkEmail( $addr, $expected = true, $msg = '' ) { if ( $msg == '' ) { @@ -64,7 +66,7 @@ class SanitizerValidateEmailTest extends PHPUnit_Framework_TestCase { } /** - * bug 26948 : comma were matched by an incorrect regexp range + * T28948 : comma were matched by an incorrect regexp range */ public function testEmailWithCommasAreInvalids() { $this->invalid( "user,foo@example.org" );