Skip to content

Commit

Permalink
Change behavior of tests when req_mirror isn't available
Browse files Browse the repository at this point in the history
Make them to be failed
  • Loading branch information
moznion committed Nov 21, 2016
1 parent 6c403f9 commit b47c680
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/LINEBot/HTTPClient/CurlHTTPClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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`');
}
}

Expand Down

0 comments on commit b47c680

Please sign in to comment.