From 86f5a9472aac25abb7115b8e98e1c0cc73882688 Mon Sep 17 00:00:00 2001 From: Ashley Rich Date: Sun, 8 Oct 2017 22:50:37 +0100 Subject: [PATCH] Don't test on older PHP versions --- .travis.yml | 5 ----- composer.json | 2 +- tests/TestQueueManager.php | 4 ++-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index e987f1f..f2a8faf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,6 @@ -dist: precise - language: php php: - - 5.3 - - 5.4 - - 5.5 - 5.6 - 7.0 - 7.1 diff --git a/composer.json b/composer.json index 2755bf8..1faea78 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ ] }, "require-dev": { - "phpunit/phpunit": "~4.8.0", + "phpunit/phpunit": "~5.7.0", "10up/wp_mock": "0.2.0" } } diff --git a/tests/TestQueueManager.php b/tests/TestQueueManager.php index a6545c9..b561686 100644 --- a/tests/TestQueueManager.php +++ b/tests/TestQueueManager.php @@ -11,7 +11,7 @@ public function setUp() { WP_Mock::setUp(); global $wpdb; - $wpdb = Mockery::mock( 'WPDB' ); + $wpdb = Mockery::mock( 'WPDB' ); $wpdb->prefix = 'wp_'; } @@ -27,7 +27,7 @@ public function test_resolve() { } public function test_resolve_exception() { - $this->setExpectedException( ConnectionNotFoundException::class); + $this->expectException( ConnectionNotFoundException::class ); QueueManager::resolve( 'wibble' ); } } \ No newline at end of file