Skip to content

Commit 4e71087

Browse files
committed
update tests for 8.4
1 parent 0870209 commit 4e71087

9 files changed

+65
-57
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
operating-system: [ ubuntu-latest ]
14-
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
14+
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
1515
dependencies: [ 'locked' ]
1616

1717
name: PHP ${{ matrix.php }} on ${{ matrix.operating-system }} with ${{ matrix.dependencies }} dependencies

tests/PEAR_ErrorStack/test_global_context_createfunction.phpt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ $testline = __LINE__ - 1;
1515
$a();
1616

1717
$ret = $stack->pop();
18-
$phpunit->assertEquals(array('file' => __FILE__,
19-
'line' => $testline,
20-
'function' => '{closure}',
21-
), $ret['context'], 'context');
22-
echo 'tests done';
18+
print_r($ret['context']);
2319
?>
24-
--EXPECT--
25-
tests done
20+
--EXPECTF--
21+
Array
22+
(
23+
[file] => %s/test_global_context_createfunction.php
24+
[line] => 4
25+
[function] => {closur%s}
26+
)

tests/PEAR_ErrorStack/test_global_context_createfunction_staticPush.phpt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ $testline = __LINE__ - 1;
1515
$a();
1616

1717
$ret = $stack->pop();
18-
$phpunit->assertEquals(array('file' => __FILE__,
19-
'line' => $testline,
20-
'function' => '{closure}',
21-
), $ret['context'], 'context');
22-
echo 'tests done';
18+
print_r($ret['context']);
2319
?>
24-
--EXPECT--
25-
tests done
20+
--EXPECTF--
21+
Array
22+
(
23+
[file] => %s/test_global_context_createfunction_staticPush.php
24+
[line] => 4
25+
[function] => {closur%s}
26+
)

tests/PEAR_ErrorStack/test_infunction_context_createfunction.phpt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ function test7()
2020
test7();
2121

2222
$ret = $stack->pop();
23-
$phpunit->assertEquals(array('file' => __FILE__,
24-
'line' => $testline,
25-
'function' => '{closure}',
26-
), $ret['context'], 'context');
27-
echo 'tests done';
23+
print_r($ret['context']);
2824
?>
29-
--EXPECT--
30-
tests done
25+
--EXPECTF--
26+
Array
27+
(
28+
[file] => %s/test_infunction_context_createfunction.php
29+
[line] => 4
30+
[function] => {closur%s}
31+
)

tests/PEAR_ErrorStack/test_infunction_context_createfunction_staticPush.phpt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ function test7()
2020
test7();
2121

2222
$ret = $stack->pop();
23-
$phpunit->assertEquals(array('file' => __FILE__,
24-
'line' => $testline,
25-
'function' => '{closure}',
26-
), $ret['context'], 'context');
27-
echo 'tests done';
23+
print_r($ret['context']);
2824
?>
29-
--EXPECT--
30-
tests done
25+
--EXPECTF--
26+
Array
27+
(
28+
[file] => %s/test_infunction_context_createfunction_staticPush.php
29+
[line] => 4
30+
[function] => {closur%s}
31+
)

tests/PEAR_ErrorStack/test_inmethod_context_createfunction.phpt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ $z = new test8;
2424
$z->test7();
2525

2626
$ret = $stack->pop();
27-
$phpunit->assertEquals(array('file' => __FILE__,
28-
'line' => $testline,
29-
'function' => '{closure}',
30-
), $ret['context'], 'context');
31-
echo 'tests done';
27+
print_r($ret['context']);
3228
?>
33-
--EXPECT--
34-
tests done
29+
--EXPECTF--
30+
Array
31+
(
32+
[file] => %s/test_inmethod_context_createfunction.php
33+
[line] => 4
34+
[function] => {closur%s}
35+
)

tests/PEAR_ErrorStack/test_inmethod_context_createfunction_staticPush.phpt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ $z = new test8;
2424
$z->test7();
2525

2626
$ret = $stack->pop();
27-
$phpunit->assertEquals(array('file' => __FILE__,
28-
'line' => $testline,
29-
'function' => '{closure}',
30-
), $ret['context'], 'context');
31-
echo 'tests done';
27+
print_r($ret['context']);
3228
?>
33-
--EXPECT--
34-
tests done
29+
--EXPECTF--
30+
Array
31+
(
32+
[file] => %s/test_inmethod_context_createfunction_staticPush.php
33+
[line] => 4
34+
[function] => {closur%s}
35+
)

tests/PEAR_ErrorStack/test_instaticmethod_context_createfunction.phpt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ class test8
2323
test8::test7();
2424

2525
$ret = $stack->pop();
26-
$phpunit->assertEquals(array('file' => __FILE__,
27-
'line' => $testline,
28-
'function' => '{closure}',
29-
), $ret['context'], 'context');
30-
echo 'tests done';
26+
print_r($ret['context']);
3127
?>
32-
--EXPECT--
33-
tests done
28+
--EXPECTF--
29+
Array
30+
(
31+
[file] => %s/test_instaticmethod_context_createfunction.php
32+
[line] => 4
33+
[function] => {closur%s}
34+
)

tests/PEAR_ErrorStack/test_instaticmethod_context_createfunction_staticPush.phpt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ class test8
2323
test8::test7();
2424

2525
$ret = $stack->pop();
26-
$phpunit->assertEquals(array('file' => __FILE__,
27-
'line' => $testline,
28-
'function' => '{closure}',
29-
), $ret['context'], 'context');
30-
echo 'tests done';
26+
print_r($ret['context']);
3127
?>
32-
--EXPECT--
33-
tests done
28+
--EXPECTF--
29+
Array
30+
(
31+
[file] => %s/test_instaticmethod_context_createfunction_staticPush.php
32+
[line] => 4
33+
[function] => {closur%s}
34+
)

0 commit comments

Comments
 (0)