Better test method name in formatting/IsEmail.php.
Props dlh. Fixes #30397. git-svn-id: https://develop.svn.wordpress.org/trunk@30392 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0462166cec
commit
c002bcf27e
@ -4,7 +4,7 @@
|
|||||||
* @group formatting
|
* @group formatting
|
||||||
*/
|
*/
|
||||||
class Tests_Formatting_IsEmail extends WP_UnitTestCase {
|
class Tests_Formatting_IsEmail extends WP_UnitTestCase {
|
||||||
function test_returns_true_if_given_a_valid_email_address() {
|
function test_returns_the_email_address_if_it_is_valid() {
|
||||||
$data = array(
|
$data = array(
|
||||||
"bob@example.com",
|
"bob@example.com",
|
||||||
"phil@example.info",
|
"phil@example.info",
|
||||||
@ -12,7 +12,7 @@ class Tests_Formatting_IsEmail extends WP_UnitTestCase {
|
|||||||
"kevin@many.subdomains.make.a.happy.man.edu"
|
"kevin@many.subdomains.make.a.happy.man.edu"
|
||||||
);
|
);
|
||||||
foreach ( $data as $datum ) {
|
foreach ( $data as $datum ) {
|
||||||
$this->assertEquals( $datum, is_email($datum), $datum );
|
$this->assertEquals( $datum, is_email( $datum ), $datum );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user