Skip to content

Commit 829d08e

Browse files
committed
fix CLI tests failing because of new OB API
1 parent fbe8cf9 commit 829d08e

File tree

6 files changed

+29
-29
lines changed

6 files changed

+29
-29
lines changed

sapi/cli/tests/007.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ string(81) "
4545
<?php
4646
class test { public $var = "test"; private $pri; function foo() { } } ?>
4747
"
48-
Could not open input file: wrong
49-
NULL
48+
string(33) "Could not open input file: wrong
49+
"
5050
string(43) "<?php class test { function foo() {} } ?>
5151
"
5252
Done

sapi/cli/tests/008.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ string(%d) "
3838

3939
Fatal error: Cannot access private property test::$pri in %s on line %d
4040
"
41-
Could not open input file: wrong
42-
NULL
41+
string(33) "Could not open input file: wrong
42+
"
4343
Done

sapi/cli/tests/009.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ var_dump(`$php -n -r "echo hello;" -a`);
1313
echo "Done\n";
1414
?>
1515
--EXPECTF--
16-
Either execute direct code, process stdin or use a file.
17-
NULL
18-
Either execute direct code, process stdin or use a file.
19-
NULL
16+
string(57) "Either execute direct code, process stdin or use a file.
17+
"
18+
string(57) "Either execute direct code, process stdin or use a file.
19+
"
2020
Done

sapi/cli/tests/011.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ echo "Done\n";
4949
--EXPECTF--
5050
string(%d) "No syntax errors detected in %s011.test.php
5151
"
52-
Could not open input file: some.unknown
53-
NULL
54-
string(%d) "
52+
string(40) "Could not open input file: some.unknown
53+
"
54+
string(186) "
5555
Parse error: %s expecting %s{%s in %s on line %d
5656
Errors parsing %s011.test.php
5757
"

sapi/cli/tests/012.phpt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ var_dump(`"$php" -n -r '' -r ''`);
1919
echo "Done\n";
2020
?>
2121
--EXPECTF--
22-
You can use -R or -F only once.
23-
NULL
24-
You can use -R or -F only once.
25-
NULL
26-
You can use -R or -F only once.
27-
NULL
28-
You can use -R or -F only once.
29-
NULL
30-
You can use -f only once.
31-
NULL
32-
You can use -B only once.
33-
NULL
34-
You can use -E only once.
35-
NULL
36-
You can use -r only once.
37-
NULL
22+
string(32) "You can use -R or -F only once.
23+
"
24+
string(32) "You can use -R or -F only once.
25+
"
26+
string(32) "You can use -R or -F only once.
27+
"
28+
string(32) "You can use -R or -F only once.
29+
"
30+
string(26) "You can use -f only once.
31+
"
32+
string(26) "You can use -B only once.
33+
"
34+
string(26) "You can use -E only once.
35+
"
36+
string(26) "You can use -r only once.
37+
"
3838
Done

sapi/cli/tests/014.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ string(1478) "<code><span style="color: #000000">
3939
<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>
4040
</span>
4141
</code>"
42-
Could not open input file: unknown
43-
NULL
42+
string(35) "Could not open input file: unknown
43+
"
4444
Done

0 commit comments

Comments
 (0)