fix memset arg order
[m6w6/ext-http] / tests / phpunit.phpt
index 6320f61ba1811b90e110ea7dece31dcfdccfd01c..22f41e5c925d9129ec0831b8631dc77b9ba2c11b 100644 (file)
@@ -2,12 +2,14 @@
 unit tests
 --SKIPIF--
 <?php
-@include_once "PHPUnit/Autoload.php" or die("skip need PHPUnit in include_path");
+include "skipif.inc";
+if (!@include_once "PHPUnit/Autoload.php") die("skip need PHPUnit in include_path");
 ?>
 --FILE--
 <?php
 require_once "PHPUnit/Autoload.php";
-(new PHPUnit_TextUI_Command)->run([null, __DIR__."/../phpunit"]);
+$c = new PHPUnit_TextUI_Command;
+$c->run(array("--process-isolation", __DIR__."/../phpunit/"));
 ?>
 --EXPECTF--
 PHPUnit %s by Sebastian Bergmann.