From e1bb27a3856a1978a0d348a9442f4424d3e056f9 Mon Sep 17 00:00:00 2001 From: Cyril MERY Date: Sat, 27 May 2017 21:23:13 +0200 Subject: [PATCH] Fix 5.4/5.5 compatibility --- tests/GitlabApiClientTest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/GitlabApiClientTest.php b/tests/GitlabApiClientTest.php index 7c3ff46..ec649d1 100644 --- a/tests/GitlabApiClientTest.php +++ b/tests/GitlabApiClientTest.php @@ -203,7 +203,14 @@ public function testOptions() )); $this->assertEquals('value', $client->getOption('new_option')); $this->assertEquals(666, $client->getOption('timeout')); - $this->expectException('InvalidArgumentException'); + } + + /** + * @expectedException \InvalidArgumentException + */ + public function testInvalidOptions() + { + $client = new SUT(self::BASE_PATH); $client->getOption('missing-option'); }