better PHP-5.3 compatibility
[m6w6/ext-http] / tests / phpunit.phpt
1 --TEST--
2 unit tests
3 --SKIPIF--
4 <?php
5 if (!@include_once "PHPUnit/Autoload.php") die("skip need PHPUnit in include_path");
6 ?>
7 --FILE--
8 <?php
9 require_once "PHPUnit/Autoload.php";
10 $c = new PHPUnit_TextUI_Command;
11 $c->run(array("--process-isolation", __DIR__."/../phpunit/"));
12 ?>
13 --EXPECTF--
14 PHPUnit %s by Sebastian Bergmann.
15
16 %a
17
18 Time: %s, Memory: %s
19
20 OK (%d tests, %d assertions)
21