]> granicus.if.org Git - php/commitdiff
fix CLI tests failing because of new OB API
authorAntony Dovgal <tony2001@php.net>
Wed, 4 May 2011 08:24:16 +0000 (08:24 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 4 May 2011 08:24:16 +0000 (08:24 +0000)
sapi/cli/tests/007.phpt
sapi/cli/tests/008.phpt
sapi/cli/tests/009.phpt
sapi/cli/tests/011.phpt
sapi/cli/tests/012.phpt
sapi/cli/tests/014.phpt

index 12fddee01df72a61fadb84eab1570108f2962212..0bf40703d944618e1861225062e50b057d78329c 100644 (file)
@@ -45,8 +45,8 @@ string(81) "
 <?php
  class test { public $var = "test"; private $pri; function foo() { } } ?>
 "
-Could not open input file: wrong
-NULL
+string(33) "Could not open input file: wrong
+"
 string(43) "<?php  class test { function foo() {} } ?>
 "
 Done
index a833043096d45a504e7c231f872c8e713809f2a7..e14338f5f5589a466245bb9746052e71617fe39a 100644 (file)
@@ -38,6 +38,6 @@ string(%d) "
 
 Fatal error: Cannot access private property test::$pri in %s on line %d
 "
-Could not open input file: wrong
-NULL
+string(33) "Could not open input file: wrong
+"
 Done
index a881a0730e946e63d2e7590fbb6c493e4fde5411..33f859fb388c3e5a0e6091dc1e14d621b7069c11 100644 (file)
@@ -13,8 +13,8 @@ var_dump(`$php -n -r "echo hello;" -a`);
 echo "Done\n";
 ?>
 --EXPECTF--    
-Either execute direct code, process stdin or use a file.
-NULL
-Either execute direct code, process stdin or use a file.
-NULL
+string(57) "Either execute direct code, process stdin or use a file.
+"
+string(57) "Either execute direct code, process stdin or use a file.
+"
 Done
index ef49666d3abda87bee83df7437aab962e6720c91..e167f94d0c82236523d372ae0ad8a051af5523b0 100644 (file)
@@ -49,9 +49,9 @@ echo "Done\n";
 --EXPECTF--    
 string(%d) "No syntax errors detected in %s011.test.php
 "
-Could not open input file: some.unknown
-NULL
-string(%d) "
+string(40) "Could not open input file: some.unknown
+"
+string(186) "
 Parse error: %s expecting %s{%s in %s on line %d
 Errors parsing %s011.test.php
 "
index 137e0bd781d1e93eb8e99df05a7ba44ace07ce9e..c1e4f6a63a51d56775a39a0c5cc8abcda31195d8 100644 (file)
@@ -19,20 +19,20 @@ var_dump(`"$php" -n -r '' -r ''`);
 echo "Done\n";
 ?>
 --EXPECTF--    
-You can use -R or -F only once.
-NULL
-You can use -R or -F only once.
-NULL
-You can use -R or -F only once.
-NULL
-You can use -R or -F only once.
-NULL
-You can use -f only once.
-NULL
-You can use -B only once.
-NULL
-You can use -E only once.
-NULL
-You can use -r only once.
-NULL
+string(32) "You can use -R or -F only once.
+"
+string(32) "You can use -R or -F only once.
+"
+string(32) "You can use -R or -F only once.
+"
+string(32) "You can use -R or -F only once.
+"
+string(26) "You can use -f only once.
+"
+string(26) "You can use -B only once.
+"
+string(26) "You can use -E only once.
+"
+string(26) "You can use -r only once.
+"
 Done
index b20478a03d9a53f8b03fa65ef4af4d7269e5a27b..e8c5203f67f84c96dd75df3e7b19657cb5043122 100644 (file)
@@ -39,6 +39,6 @@ string(1478) "<code><span style="color: #000000">
 <br /><span style="color: #0000BB">&lt;?php<br />$test&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"var"</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//var<br />/*&nbsp;test&nbsp;class&nbsp;*/<br /></span><span style="color: #007700">class&nbsp;</span><span style="color: #0000BB">test&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">$var&nbsp;</span><span style="color: #007700">=&nbsp;array();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;function&nbsp;</span><span style="color: #0000BB">foo</span><span style="color: #007700">(</span><span style="color: #0000BB">Test&nbsp;$arg</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"hello"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br /></span><span style="color: #0000BB">$o&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">test</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;<br /></span>
 </span>
 </code>"
-Could not open input file: unknown
-NULL
+string(35) "Could not open input file: unknown
+"
 Done