Sam Reed
6906724935
Add, update, tweak documentation
...
Fix document comment blocks
Tweak some returns
2011-10-26 03:45:13 +00:00
Sam Reed
90e74042b4
Fix comment blocks that start /* to /**
2011-10-11 18:30:50 +00:00
Aaron Schulz
c47386e27e
Tweak r98602: keep the other IP normalization for non-ranges, such as upper case for v6. This keeps it a bit more consistent.
2011-10-01 05:11:21 +00:00
Aaron Schulz
9ac53dcc3b
Made provideIPCIDRs() not add a '/' if there is no prefix length. Fixes bug 31234.
2011-10-01 04:54:44 +00:00
Antoine Musso
41741d4dec
complement r96386 tests
2011-09-07 20:28:49 +00:00
Aaron Schulz
1ec49ff3d3
Fixed typo in ipv6 private IP range list and added test (bug 30739)
2011-09-06 23:15:42 +00:00
Tim Starling
6a2123260b
* (bug 28798) Set $wgServer in the default LocalSettings.php
...
* (bug 14977) When detecting $wgServer, treat IPv6 addresses in $_SERVER['SERVER_NAME'] etc. in a sensible way.
* Tests for the new functions in IP.php and Installer.php
2011-06-15 07:35:47 +00:00
Siebrand Mazeland
75c6696aa8
Use consistent notation for "@todo FIXME". Should update http://svn.wikimedia.org/doc/todo.html nicely.
2011-05-17 22:03:20 +00:00
Antoine Musso
16c6730b84
PHPUnit coverage comment must not have parentheses
...
Those comments have the format:
@covers Class::Method
In PHPUnit 3.5.12, the comment is split by :: and method_exist called on
the resulting string. When one use Class::Method(), the result is a call
to method_exist( 'Method()' ) which is always false and raise an exception
Removing parentheses from r79118 solve the issue. This also kind of
revert r79164.
2011-03-06 17:36:42 +00:00
Antoine Musso
6fbd3da876
tests for IP class, mostly incompletes
...
* IP::sanitizeIP()
* IP::canonicalize()
* IP::isInRange()
2011-03-05 17:30:33 +00:00
Aaron Schulz
f65ce02ff9
* (bug 27353) IPv6 address ending in "::WORD" was not recognized
...
* Moved down 'contains no "::"' alternative for clarity (and possibly use frequency too)
* Added more IPv6 tests
2011-02-13 23:24:48 +00:00
Antoine Musso
bd333e7fcf
Reduce range of IPv6 tested by testValidIPs
...
By using steps of 0xF, the number of assertions is reduced from 70k
to 5k revisions. It is not that useful to test all of them.
Follow up r76569
2011-02-06 20:24:53 +00:00
X!
fa0ce7197a
-Set configuration automatically if not set. This allows for evasion of the makefile, ergo, more control.
...
-Remove instances of @covers; they were breaking code-coverage
2010-12-29 05:38:11 +00:00
Chad Horohoe
a0636b3d44
Add @covers annotations to IP tests
2010-12-28 18:23:43 +00:00
Chad Horohoe
447529064b
* verbose and color default output from phpunit
...
* Make a bunch of tests subclass MediaWikiTestCase
* Parser tests and ResourceLoaderTest can't subclass it yet due to various issues
2010-12-28 18:17:16 +00:00
Chad Horohoe
23f69f10ed
Per wikitech-l discussion: Move tests from maintenance/tests/ to tests/. They're not strictly maintenance scripts, and some people want to do a selective checkout that doesn't include the tests. There's still debate on whether we should include these in the release downloads, but we had a pretty firm consensus to move this.
2010-12-14 16:26:35 +00:00