From: Christian Weiske Date: Wed, 25 Jan 2012 22:20:51 +0000 (+0100) Subject: skip tests if unittest url is not set instead of failing X-Git-Tag: v0.98.6~53 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cb4b0469ca48d9865c8b162c1446d9011adf249b;p=semanticscuttle.git skip tests if unittest url is not set instead of failing --- diff --git a/tests/TestBaseApi.php b/tests/TestBaseApi.php index 1052ae7..ff3b695 100644 --- a/tests/TestBaseApi.php +++ b/tests/TestBaseApi.php @@ -55,7 +55,7 @@ class TestBaseApi extends TestBase protected function setUp() { if ($GLOBALS['unittestUrl'] === null) { - $this->assertTrue(false, 'Unittest URL not set in config'); + $this->markTestSkipped('Unittest URL not set in config'); } if ($this->urlPart === null) { $this->assertTrue(false, 'Set the urlPart variable');