소스 검색

Better comment about no test IP6 addresses for "FILTER_FLAG_NO_RES_RANGE"

Joseph Bielawski 14 년 전
부모
커밋
bf87a35595
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      tests/Symfony/Tests/Component/Validator/Constraints/IpValidatorTest.php

+ 3 - 1
tests/Symfony/Tests/Component/Validator/Constraints/IpValidatorTest.php

@@ -242,7 +242,9 @@ class IpValidatorTest extends \PHPUnit_Framework_TestCase
 
     public function getInvalidReservedIpsV6()
     {
-        // Empty array as I cannot find any reserved IP6 address
+        // Quoting after official filter documentation:
+        // "FILTER_FLAG_NO_RES_RANGE = This flag does not apply to IPv6 addresses."
+        // Full description: http://php.net/manual/en/filter.filters.flags.php
         return array();
     }