Browse Source
- Also made all SQLite tests skippable if the extension is not loaded - Fixed format of ETags in test server - Passed any CLI arguments to PHPUnit in the test runnermicrosub
J. King
7 years ago
13 changed files with 61 additions and 13 deletions
@ -0,0 +1,7 @@ |
|||
<?php return [ |
|||
'code' => 304, |
|||
'cache' => false, |
|||
'fields' => [ |
|||
"ETag: ".$_SERVER['HTTP_IF_NONE_MATCH'], |
|||
], |
|||
]; |
@ -0,0 +1,7 @@ |
|||
<?php return [ |
|||
'code' => 304, |
|||
'cache' => false, |
|||
'fields' => [ |
|||
'Last-Modified: '.$_SERVER['HTTP_IF_MODIFIED_SINCE'], |
|||
], |
|||
]; |
@ -0,0 +1,4 @@ |
|||
<?php return [ |
|||
'code' => 304, |
|||
'cache' => false, |
|||
]; |
@ -0,0 +1,7 @@ |
|||
<?php return [ |
|||
'code' => 304, |
|||
'lastMod' => random_int(0,2^31), |
|||
'fields' => [ |
|||
"ETag: ".bin2hex(random_bytes(8)), |
|||
], |
|||
]; |
@ -1,7 +1,7 @@ |
|||
#! /bin/sh |
|||
base=`dirname "$0"` |
|||
php -n -S localhost:8000 "$base/server.php" >/dev/null & |
|||
php "$base/../vendor/phpunit/phpunit/phpunit" -c "$base/phpunit.xml" |
|||
php "$base/../vendor/phpunit/phpunit/phpunit" -c "$base/phpunit.xml" $* |
|||
sleep 1s |
|||
pid=`lsof -n -i:8000 | grep -Eo "php\s+[0-9]+" | grep -Eo "[0-9]+"` |
|||
kill $pid |
Loading…
Reference in new issue