From e697ec8fc3f528fbf252f2192becdbb7bf7cdd73 Mon Sep 17 00:00:00 2001 From: Stephen George Date: Tue, 4 Apr 2017 08:10:26 -0500 Subject: [PATCH 1/3] Retroactively enable Travis-CI for 0.0.7 --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..86ecd56 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: php +php: + - '5.3' + - '5.4' + - '5.5' + - '5.6' + - '7.0' + - hhvm + +install: + - composer install + +script: + - phpunit From 147a11c0abf070be8dc1e51e8c5c5e0d53d0e2f5 Mon Sep 17 00:00:00 2001 From: Stephen George Date: Tue, 4 Apr 2017 08:23:10 -0500 Subject: [PATCH 2/3] Ensure test suite runs on PHP 7 Prevent this: ``` $ phpunit PHPUnit 6.0.9 by Sebastian Bergmann and contributors. Time: 86 ms, Memory: 10.00MB No tests executed! The command "phpunit" exited with 0. ``` --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 86ecd56..c1e1e5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ php: - hhvm install: - - composer install + - composer --dev install script: - - phpunit + - ./vendor/bin/phpunit From 68b688237f28888b6a693dc31c411301ee30833a Mon Sep 17 00:00:00 2001 From: Stephen George Date: Tue, 4 Apr 2017 08:30:16 -0500 Subject: [PATCH 3/3] [SPEC] Update testPostsBacktrace() for PHPUnit 4.8.35 --- tests/NotifierTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/NotifierTest.php b/tests/NotifierTest.php index c7668d5..61c1945 100644 --- a/tests/NotifierTest.php +++ b/tests/NotifierTest.php @@ -39,13 +39,14 @@ public function testPostsError() public function testPostsBacktrace() { $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]); } }