- fix some tests on linux
[m6w6/ext-http] / tests / HttpRequest_001.phpt
index 8e0d6fab06c112793b1019cfa3fdc1695d6d4265..27cd1a02cb563b92b843b638d0da1be89ced1c7f 100644 (file)
@@ -1,12 +1,14 @@
 --TEST--
 HttpRequest options
 --SKIPIF--
-<?php 
+<?php
 include 'skip.inc';
-(5 > (int) PHP_VERSION) and die('skip PHP5 is required for Http classes');
+checkver(5);
+checkcls('HttpRequest');
 ?>
 --FILE--
 <?php
+echo "-TEST\n";
 $r1 = new HttpRequest;
 $r2 = new HttpRequest;
 $r1->setOptions(array('redirect'=>11, 'headers'=>array('X-Foo'=>'Bar')));
@@ -21,9 +23,7 @@ $r1 = null;
 $r2 = null;
 ?>
 --EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
 Array
 (
     [0] => Array
@@ -49,4 +49,4 @@ Array
         )
 
 )
-bool(false)
\ No newline at end of file
+bool(false)