validate: include decls in the multiple validation rounds
[m6w6/ext-psi] / tests / arpa_inet / inet001.phpt
1 --TEST--
2 inet_ntop/inet_pton
3 --INI--
4 psi.directory={PWD}/../../psi.d:{PWD}
5 --SKIPIF--
6 <?php
7 extension_loaded("psi") or die("skip - need ext/psi");
8 function_exists("psi\\inet_pton") or die("skip - need inet_pton()");
9 ?>
10 --FILE--
11 ===TEST===
12 <?php
13 var_dump(psi\inet_pton(psi\AF_INET, "127.1.1.1", $res));
14 var_dump(psi\inet_ntop(psi\AF_INET, $res));
15 ?>
16 ===DONE===
17 --EXPECT--
18 ===TEST===
19 int(1)
20 string(9) "127.1.1.1"
21 ===DONE===