Fix gh-issue #7
[m6w6/ext-http] / tests / envresponsecodes.phpt
1 --TEST--
2 env response codes
3 --SKIPIF--
4 <?php include "skipif.inc"; ?>
5 --FILE--
6 <?php
7 echo "Test\n";
8
9 var_dump(
10 array_diff_assoc(
11 http\Env::getResponseStatusForAllCodes(),
12 array_filter(
13 array_map(
14 array("http\\Env", "getResponseStatusForCode"),
15 range(0, 600)
16 )
17 )
18 )
19 );
20 ?>
21 Done
22 --EXPECT--
23 Test
24 array(0) {
25 }
26 Done