dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include IP address in "Login for $1 succeeded" log entry
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
SanitizerValidateEmailTest.php
diff --git
a/tests/phpunit/includes/SanitizerValidateEmailTest.php
b/tests/phpunit/includes/SanitizerValidateEmailTest.php
index
f47e74e
..
c4e4308
100644
(file)
--- 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...
*/
* @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 == '' ) {
private function checkEmail( $addr, $expected = true, $msg = '' ) {
if ( $msg == '' ) {
@@
-64,7
+66,7
@@
class SanitizerValidateEmailTest extends PHPUnit_Framework_TestCase {
}
/**
}
/**
- *
bug 26
948 : comma were matched by an incorrect regexp range
+ *
T28
948 : comma were matched by an incorrect regexp range
*/
public function testEmailWithCommasAreInvalids() {
$this->invalid( "user,foo@example.org" );
*/
public function testEmailWithCommasAreInvalids() {
$this->invalid( "user,foo@example.org" );