merged branch webfactory/fix-af-inet-define (PR #7535)
This PR was squashed before being merged into the master branch (closes #7535).
Discussion
----------
AF_* constants are only available with the sockets extension
Skip test if the extension is not available
Commits
-------
82e550b
AF_* constants are only available with the sockets extension
This commit is contained in:
commit
98f598368a
@ -62,6 +62,10 @@ class IpUtilsTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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".');
|
||||
}
|
||||
|
Reference in New Issue
Block a user