From: Umherirrender Date: Fri, 16 Mar 2018 16:54:14 +0000 (+0100) Subject: Make IPTest::isNotIPAddress a test function X-Git-Tag: 1.31.0-rc.0~362^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%22%20.%20%22?a=commitdiff_plain;h=2bedfa3f1ed6576d99ffb55ea86d20c29a93f445;p=lhc%2Fweb%2Fwiklou.git Make IPTest::isNotIPAddress a test function Only functions starting with test* are running by phpunit Change-Id: I91061fb3d5132c61e01e368fab0df0e511b1920d --- diff --git a/tests/phpunit/includes/libs/IPTest.php b/tests/phpunit/includes/libs/IPTest.php index 6a751816a6..9702c82c60 100644 --- a/tests/phpunit/includes/libs/IPTest.php +++ b/tests/phpunit/includes/libs/IPTest.php @@ -16,7 +16,7 @@ class IPTest extends PHPUnit\Framework\TestCase { * @covers IP::isIPAddress * @dataProvider provideInvalidIPs */ - public function isNotIPAddress( $val, $desc ) { + public function testIsNotIPAddress( $val, $desc ) { $this->assertFalse( IP::isIPAddress( $val ), $desc ); }