/** * @test */ public function runTestWhenServerIsNotRunningMarksTestAsSkipped() { $this->extensionSettingsService->set('selenium_host', 'http://example.invalid'); $subject = new \Tx_Phpunit_Selenium_TestCase(null, array(), '', $this->extensionSettingsService); try { $subject->runTest(); } catch (PHPUnit_Framework_SkippedTestError $e) { self::assertTrue(true); } }
/** * @test */ public function runTestWhenServerIsNotRunningMarksTestAsSkipped() { $this->extensionSettingsService->set('selenium_host', 'http://example.invalid'); $fixture = new Tx_Phpunit_Selenium_TestCase(); try { $fixture->runTest(); } catch (PHPUnit_Framework_SkippedTestError $e) { $this->assertTrue(TRUE); } }