Browse Source

fix CLI tests failing because of new OB API

experimental/with_scalar_types
Antony Dovgal 15 years ago
parent
commit
829d08e50c
  1. 4
      sapi/cli/tests/007.phpt
  2. 4
      sapi/cli/tests/008.phpt
  3. 8
      sapi/cli/tests/009.phpt
  4. 6
      sapi/cli/tests/011.phpt
  5. 32
      sapi/cli/tests/012.phpt
  6. 4
      sapi/cli/tests/014.phpt

4
sapi/cli/tests/007.phpt

@ -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

4
sapi/cli/tests/008.phpt

@ -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

8
sapi/cli/tests/009.phpt

@ -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

6
sapi/cli/tests/011.phpt

@ -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
"

32
sapi/cli/tests/012.phpt

@ -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

4
sapi/cli/tests/014.phpt

@ -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
Loading…
Cancel
Save