add uv_ip test cases

This commit is contained in:
Shuhei Tanuma 2012-07-06 23:42:31 +09:00
parent 3276e0abf8
commit deec04d4c2
4 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,7 @@
--TEST--
Check for uv_ip4_addr
--FILE--
<?php
var_dump(uv_ip4_addr("0.0.0.0",0));
--EXPECT--
resource(4) of type (uv_sockaddr)

View File

@ -0,0 +1,9 @@
--TEST--
Check for uv_ip4_name
--FILE--
<?php
$ip = uv_ip4_addr("0.0.0.0",0);
$info = uv_ip4_name($ip);
echo $info . PHP_EOL;
--EXPECT--
0.0.0.0

View File

@ -0,0 +1,7 @@
--TEST--
Check for uv_ip6_addr
--FILE--
<?php
var_dump(uv_ip6_addr("::0",0));
--EXPECT--
resource(4) of type (uv_sockaddr)

View File

@ -0,0 +1,8 @@
--TEST--
Check for uv_ip6_name
--FILE--
<?php
$ip = uv_ip6_addr("::1",0);
echo uv_ip6_name($ip) . PHP_EOL;
--EXPECT--
::1