Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 68b6882

Browse files
committed
[SPEC] Update testPostsBacktrace() for PHPUnit 4.8.35
1 parent 147a11c commit 68b6882

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/NotifierTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ public function testPostsError()
3939
public function testPostsBacktrace()
4040
{
4141
$backtrace = $this->notifier->notice['errors'][0]['backtrace'];
42+
// Note: The following assertion is specific to PHPUnit 4.8.35
4243
$wanted = array(array(
4344
'file' => dirname(dirname(__FILE__)) . '/vendor/phpunit/phpunit/src/Framework/TestCase.php',
44-
'line' => 742,
45+
'line' => 764,
4546
'function' => 'Airbrake\Tests\NotifyTest->setUp',
4647
));
4748
for ($i = 0; $i < count($wanted); $i++) {
48-
$this->assertEquals($backtrace[$i], $wanted[$i]);
49+
$this->assertEquals($wanted[$i], $backtrace[$i]);
4950
}
5051
}
5152

0 commit comments

Comments
 (0)