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

Commit 6358cff

Browse files
authored
Merge pull request #2 from sfgeorge/feature/fix-backtrace-unit-test
Fix backtrace unit test
2 parents 2433dad + 68b6882 commit 6358cff

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: php
2+
php:
3+
- '5.3'
4+
- '5.4'
5+
- '5.5'
6+
- '5.6'
7+
- '7.0'
8+
- hhvm
9+
10+
install:
11+
- composer --dev install
12+
13+
script:
14+
- ./vendor/bin/phpunit

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)