From b47c68070cd72a49ea558f622e18925d4ee41f6c Mon Sep 17 00:00:00 2001 From: moznion Date: Mon, 21 Nov 2016 17:32:40 +0900 Subject: [PATCH] Change behavior of tests when req_mirror isn't available Make them to be failed --- tests/LINEBot/HTTPClient/CurlHTTPClientTest.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/LINEBot/HTTPClient/CurlHTTPClientTest.php b/tests/LINEBot/HTTPClient/CurlHTTPClientTest.php index a1523558..41e6f28e 100644 --- a/tests/LINEBot/HTTPClient/CurlHTTPClientTest.php +++ b/tests/LINEBot/HTTPClient/CurlHTTPClientTest.php @@ -48,12 +48,7 @@ public static function setUpBeforeClass() CurlHTTPClientTest::$reqMirrorPID = $out[0]; sleep(1); // XXX } - - return; } - - echo PHP_EOL, '[WARN] req_mirror does not exist. Please try to execute `make install-devtool`', PHP_EOL; - echo '[WARN] Skip CurlHTTPClientTest', PHP_EOL; } public static function tearDownAfterClass() @@ -66,7 +61,7 @@ public static function tearDownAfterClass() protected function setUp() { if (!file_exists(CurlHTTPClientTest::$reqMirrorPath) || empty(CurlHTTPClientTest::$reqMirrorPID)) { - $this->markTestSkipped('req_mirror is not available'); + $this->fail('req_mirror server is not available. Please try to execute `make install-devtool`'); } }