From c002bcf27e3c5106d5737c81c1ccef9bb0a0aa60 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Wed, 19 Nov 2014 19:31:17 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/formatting/IsEmail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/formatting/IsEmail.php b/tests/phpunit/tests/formatting/IsEmail.php index 583875248d..0432fa62da 100644 --- a/tests/phpunit/tests/formatting/IsEmail.php +++ b/tests/phpunit/tests/formatting/IsEmail.php @@ -4,7 +4,7 @@ * @group formatting */ 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( "bob@example.com", "phil@example.info", @@ -12,7 +12,7 @@ class Tests_Formatting_IsEmail extends WP_UnitTestCase { "kevin@many.subdomains.make.a.happy.man.edu" ); foreach ( $data as $datum ) { - $this->assertEquals( $datum, is_email($datum), $datum ); + $this->assertEquals( $datum, is_email( $datum ), $datum ); } }