Skip to content

Commit be7ff58

Browse files
committed
Fixed a few test cases
1 parent 3beb671 commit be7ff58

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

tests/010-uv_ip4_addr.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Check for uv_ip4_addr
33
--FILE--
44
<?php
55
var_dump(uv_ip4_addr("0.0.0.0",0));
6-
--EXPECT--
7-
resource(4) of type (uv_sockaddr)
6+
--EXPECTF--
7+
resource(%d) of type (uv_sockaddr)

tests/010-uv_ip6_addr.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Check for uv_ip6_addr
33
--FILE--
44
<?php
55
var_dump(uv_ip6_addr("::0",0));
6-
--EXPECT--
7-
resource(4) of type (uv_sockaddr)
6+
--EXPECTF--
7+
resource(%d) of type (uv_sockaddr)

tests/999-uv_http_parser.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Check for uv_http_parser
3+
--SKIPIF--
4+
<?php if (!function_exists('uv_http_parser_execute')) die("Skipped: needs http parser."); ?>
35
--FILE--
46
<?php
57
$parser = uv_http_parser_init();
@@ -90,4 +92,4 @@ array(5) {
9092
["WEBSOCKET_PROTOCOL"]=>
9193
string(6) "sample"
9294
}
93-
}
95+
}

0 commit comments

Comments
 (0)