Make IPTest::isNotIPAddress a test function
authorUmherirrender <umherirrender_de.wp@web.de>
Fri, 16 Mar 2018 16:54:14 +0000 (17:54 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 16 Mar 2018 16:54:14 +0000 (17:54 +0100)
Only functions starting with test* are running by phpunit

Change-Id: I91061fb3d5132c61e01e368fab0df0e511b1920d

tests/phpunit/includes/libs/IPTest.php

index 6a75181..9702c82 100644 (file)
@@ -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 );
        }