Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

AF_* constants are only available with the sockets extension

  • Loading branch information...
commit 82e550b24cb5d9659dcff8d1132445a4ede4a365 1 parent e94346e
@mpdude mpdude authored fabpot committed
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".');
}
Please sign in to comment.
Something went wrong with that request. Please try again.