Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 7a57e26

Browse files
committed
skip guzzle4/5 tests if not installed
1 parent 7fe7426 commit 7a57e26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ZendDiagnosticsTest/GuzzleHttpServiceTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public function testGuzzle3Check($content, $actualContent, $actualStatusCode, $r
3838
*/
3939
public function testGuzzle4And5Check($content, $actualContent, $actualStatusCode, $resultClass, $method = 'GET', $body = null)
4040
{
41+
if (!class_exists('GuzzleHttp\Client')) {
42+
$this->markTestSkipped('guzzlehttp/guzzle not installed.');
43+
}
44+
4145
$check = new GuzzleHttpService(
4246
'http://www.example.com/foobar',
4347
array(),

0 commit comments

Comments
 (0)