dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Localize namespaces to inh"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
IPTest.php
diff --git
a/tests/phpunit/includes/libs/IPTest.php
b/tests/phpunit/includes/libs/IPTest.php
index
e47c4ba
..
8a120ea
100644
(file)
--- a/
tests/phpunit/includes/libs/IPTest.php
+++ b/
tests/phpunit/includes/libs/IPTest.php
@@
-10,6
+10,9
@@
*/
class IPTest extends PHPUnit_Framework_TestCase {
*/
class IPTest extends PHPUnit_Framework_TestCase {
+
+ use MediaWikiCoversValidator;
+
/**
* @covers IP::isIPAddress
* @dataProvider provideInvalidIPs
/**
* @covers IP::isIPAddress
* @dataProvider provideInvalidIPs
@@
-561,7
+564,7
@@
class IPTest extends PHPUnit_Framework_TestCase {
}
/**
}
/**
- *
Test for IP::splitHostAndPort().
+ *
@covers IP::splitHostAndPort()
* @dataProvider provideSplitHostAndPort
*/
public function testSplitHostAndPort( $expected, $input, $description ) {
* @dataProvider provideSplitHostAndPort
*/
public function testSplitHostAndPort( $expected, $input, $description ) {
@@
-588,7
+591,7
@@
class IPTest extends PHPUnit_Framework_TestCase {
}
/**
}
/**
- *
Test for
IP::combineHostAndPort()
+ *
@covers
IP::combineHostAndPort()
* @dataProvider provideCombineHostAndPort
*/
public function testCombineHostAndPort( $expected, $input, $description ) {
* @dataProvider provideCombineHostAndPort
*/
public function testCombineHostAndPort( $expected, $input, $description ) {
@@
-612,7
+615,7
@@
class IPTest extends PHPUnit_Framework_TestCase {
}
/**
}
/**
- *
Test for
IP::sanitizeRange()
+ *
@covers
IP::sanitizeRange()
* @dataProvider provideIPCIDRs
*/
public function testSanitizeRange( $input, $expected, $description ) {
* @dataProvider provideIPCIDRs
*/
public function testSanitizeRange( $input, $expected, $description ) {
@@
-636,7
+639,7
@@
class IPTest extends PHPUnit_Framework_TestCase {
}
/**
}
/**
- *
Test for
IP::prettifyIP()
+ *
@covers
IP::prettifyIP()
* @dataProvider provideIPsToPrettify
*/
public function testPrettifyIP( $ip, $prettified ) {
* @dataProvider provideIPsToPrettify
*/
public function testPrettifyIP( $ip, $prettified ) {