diff --git a/cake/tests/cases/libs/code_coverage_manager.test.php b/cake/tests/cases/libs/code_coverage_manager.test.php index 222c51fa7..88059a007 100644 --- a/cake/tests/cases/libs/code_coverage_manager.test.php +++ b/cake/tests/cases/libs/code_coverage_manager.test.php @@ -36,7 +36,6 @@ require_once CAKE . 'tests' . DS . 'lib' . DS . 'cake_reporter.php'; * @subpackage cake.tests.cases.libs */ class CodeCoverageManagerTest extends UnitTestCase { - /** * Skip if XDebug not installed * @@ -47,7 +46,7 @@ class CodeCoverageManagerTest extends UnitTestCase { } function testNoTestCaseSupplied() { - if (!in_array(php_sapi_name(), array('cli', 'cgi-fcgi'))) { + if (php_sapi_name() != 'cli') { CodeCoverageManager::start(substr(md5(microtime()), 0, 5), new CakeHtmlReporter()); CodeCoverageManager::report(false); $this->assertError();