Backport v4 updates
[m6w6/ext-http] / tests / client024.phpt
index 27a68b4f32dfc2ee01bdaa480de23f6b028643ba..39949b038f16444ac71931397610837b23fa14c2 100644 (file)
@@ -1,12 +1,14 @@
 --TEST--
 client deprecated methods
 --SKIPIF--
-<?php 
+<?php
 include "skipif.inc";
 skip_client_test();
+if (!(error_reporting() & E_DEPRECATED))
+       die("skip error_reporting() & ~E_DEPRECATED\n");
 ?>
 --FILE--
-<?php 
+<?php
 
 echo "Test\n";
 
@@ -19,7 +21,7 @@ $client->enablePipelining(false);
 --EXPECTF--
 Test
 
-Deprecated: Function http\Client::enableEvents() is deprecated in %sclient024.php on line %d
+Deprecated: %s http\Client::enableEvents() is deprecated in %sclient024.php on line %d
 
-Deprecated: Function http\Client::enablePipelining() is deprecated in %sclient024.php on line %d
+Deprecated: %s http\Client::enablePipelining() is deprecated in %sclient024.php on line %d
 ===DONE===