Browse files

AF_* constants are only available with the sockets extension

  • Loading branch information...
1 parent e94346e commit 82e550b24cb5d9659dcff8d1132445a4ede4a365 @mpdude mpdude committed with fabpot Mar 31, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php
View
4 src/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php
@@ -62,6 +62,10 @@ public function testIpv6Provider()
*/
public function testAnIpv6WithOptionDisabledIpv6()
{
+ if (!extension_loaded('sockets')) {
+ $this->markTestSkipped('Only works when the socket extension is enabled');
+ }
+
if (defined('AF_INET6')) {
$this->markTestSkipped('Only works when PHP is compiled with the option "disable-ipv6".');
}

0 comments on commit 82e550b

Please sign in to comment.