Skip to content

Commit

Permalink
AF_* constants are only available with the sockets extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude authored and fabpot committed Apr 7, 2013
1 parent e94346e commit 82e550b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php
Expand Up @@ -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".');
}
Expand Down

0 comments on commit 82e550b

Please sign in to comment.