Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: php
php:
- '5.3'
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- hhvm

install:
- composer --dev install

script:
- ./vendor/bin/phpunit
5 changes: 3 additions & 2 deletions tests/NotifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ public function testPostsError()
public function testPostsBacktrace()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dig it.

{
$backtrace = $this->notifier->notice['errors'][0]['backtrace'];
// Note: The following assertion is specific to PHPUnit 4.8.35
$wanted = array(array(
'file' => dirname(dirname(__FILE__)) . '/vendor/phpunit/phpunit/src/Framework/TestCase.php',
'line' => 742,
'line' => 764,
'function' => 'Airbrake\Tests\NotifyTest->setUp',
));
for ($i = 0; $i < count($wanted); $i++) {
$this->assertEquals($backtrace[$i], $wanted[$i]);
$this->assertEquals($wanted[$i], $backtrace[$i]);
}
}

Expand Down