* @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 == '' ) {
}
/**
- * 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" );