Skip to content

Commit

Permalink
update tests for 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnazg committed Nov 24, 2024
1 parent 0870209 commit 4e71087
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
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' ]
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' ]
dependencies: [ 'locked' ]

name: PHP ${{ matrix.php }} on ${{ matrix.operating-system }} with ${{ matrix.dependencies }} dependencies
Expand Down
15 changes: 8 additions & 7 deletions tests/PEAR_ErrorStack/test_global_context_createfunction.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ $testline = __LINE__ - 1;
$a();

$ret = $stack->pop();
$phpunit->assertEquals(array('file' => __FILE__,
'line' => $testline,
'function' => '{closure}',
), $ret['context'], 'context');
echo 'tests done';
print_r($ret['context']);
?>
--EXPECT--
tests done
--EXPECTF--
Array
(
[file] => %s/test_global_context_createfunction.php
[line] => 4
[function] => {closur%s}
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ $testline = __LINE__ - 1;
$a();

$ret = $stack->pop();
$phpunit->assertEquals(array('file' => __FILE__,
'line' => $testline,
'function' => '{closure}',
), $ret['context'], 'context');
echo 'tests done';
print_r($ret['context']);
?>
--EXPECT--
tests done
--EXPECTF--
Array
(
[file] => %s/test_global_context_createfunction_staticPush.php
[line] => 4
[function] => {closur%s}
)
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ function test7()
test7();

$ret = $stack->pop();
$phpunit->assertEquals(array('file' => __FILE__,
'line' => $testline,
'function' => '{closure}',
), $ret['context'], 'context');
echo 'tests done';
print_r($ret['context']);
?>
--EXPECT--
tests done
--EXPECTF--
Array
(
[file] => %s/test_infunction_context_createfunction.php
[line] => 4
[function] => {closur%s}
)
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ function test7()
test7();

$ret = $stack->pop();
$phpunit->assertEquals(array('file' => __FILE__,
'line' => $testline,
'function' => '{closure}',
), $ret['context'], 'context');
echo 'tests done';
print_r($ret['context']);
?>
--EXPECT--
tests done
--EXPECTF--
Array
(
[file] => %s/test_infunction_context_createfunction_staticPush.php
[line] => 4
[function] => {closur%s}
)
15 changes: 8 additions & 7 deletions tests/PEAR_ErrorStack/test_inmethod_context_createfunction.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ $z = new test8;
$z->test7();

$ret = $stack->pop();
$phpunit->assertEquals(array('file' => __FILE__,
'line' => $testline,
'function' => '{closure}',
), $ret['context'], 'context');
echo 'tests done';
print_r($ret['context']);
?>
--EXPECT--
tests done
--EXPECTF--
Array
(
[file] => %s/test_inmethod_context_createfunction.php
[line] => 4
[function] => {closur%s}
)
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ $z = new test8;
$z->test7();

$ret = $stack->pop();
$phpunit->assertEquals(array('file' => __FILE__,
'line' => $testline,
'function' => '{closure}',
), $ret['context'], 'context');
echo 'tests done';
print_r($ret['context']);
?>
--EXPECT--
tests done
--EXPECTF--
Array
(
[file] => %s/test_inmethod_context_createfunction_staticPush.php
[line] => 4
[function] => {closur%s}
)
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ class test8
test8::test7();

$ret = $stack->pop();
$phpunit->assertEquals(array('file' => __FILE__,
'line' => $testline,
'function' => '{closure}',
), $ret['context'], 'context');
echo 'tests done';
print_r($ret['context']);
?>
--EXPECT--
tests done
--EXPECTF--
Array
(
[file] => %s/test_instaticmethod_context_createfunction.php
[line] => 4
[function] => {closur%s}
)
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ class test8
test8::test7();

$ret = $stack->pop();
$phpunit->assertEquals(array('file' => __FILE__,
'line' => $testline,
'function' => '{closure}',
), $ret['context'], 'context');
echo 'tests done';
print_r($ret['context']);
?>
--EXPECT--
tests done
--EXPECTF--
Array
(
[file] => %s/test_instaticmethod_context_createfunction_staticPush.php
[line] => 4
[function] => {closur%s}
)

0 comments on commit 4e71087

Please sign in to comment.