X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2FIPTest.php;h=9ec53c00c773acac5a0f42365b77ac5176c54a4d;hb=57445f04259077c5bf927fc6a6dca189fbe86214;hp=8a120eaab049db019314fd1d43e97b1f9225b6a4;hpb=a18476eab39dc201384c68cbd27228c5af32f7fc;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/IPTest.php b/tests/phpunit/includes/libs/IPTest.php index 8a120eaab0..9ec53c00c7 100644 --- a/tests/phpunit/includes/libs/IPTest.php +++ b/tests/phpunit/includes/libs/IPTest.php @@ -8,8 +8,7 @@ * @todo Test methods in this call should be split into a method and a * dataprovider. */ - -class IPTest extends PHPUnit_Framework_TestCase { +class IPTest extends PHPUnit\Framework\TestCase { use MediaWikiCoversValidator; @@ -17,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 ); } @@ -326,6 +325,7 @@ class IPTest extends PHPUnit_Framework_TestCase { [ '0.0.0.0', '0.0.0.0' ], [ '0.0.0.0', '00.00.00.00' ], [ '0.0.0.0', '000.000.000.000' ], + [ '0.0.0.0/24', '000.000.000.000/24' ], [ '141.0.11.253', '141.000.011.253' ], [ '1.2.4.5', '1.2.4.5' ], [ '1.2.4.5', '01.02.04.05' ],