svn: /pear/packages/Net_IPv6/trunk/tests/ NetIPv6Test.php
| From: | Alexander Merz | Date: | Tue, 15 Nov 2011 00:24:57 +0000 |
| Subject: | svn: /pear/packages/Net_IPv6/trunk/tests/ NetIPv6Test.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-62708@lists.php.net to get a copy of this message | ||
alexmerz Tue, 15 Nov 2011 00:24:57 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=319219
Log:
add test case for fix #18976
Bug: http://pear.php.net/bugs/18976 (unknown)
Changed paths:
U pear/packages/Net_IPv6/trunk/tests/NetIPv6Test.php
Modified: pear/packages/Net_IPv6/trunk/tests/NetIPv6Test.php
===================================================================
--- pear/packages/Net_IPv6/trunk/tests/NetIPv6Test.php 2011-11-14 23:33:15 UTC (rev 319218)
+++ pear/packages/Net_IPv6/trunk/tests/NetIPv6Test.php 2011-11-15 00:24:57 UTC (rev 319219)
@@ -287,6 +287,20 @@
}
+ /**
+ * handle Bug 18976
+ * checkIPv6 did not check the value of the netmask
+ */
+ public function testBug18976_NetmaskValueOutOfRange() {
+
+ $testIp = '2002::/129';
+
+ $is = $this->ip->checkIPv6($testIp);
+
+ $this->assertFalse($is);
+
+ }
+
/**
* this testcase handles compress
*