From d3cdb7b591627823b968bba5f0a29da9d1c11a99 Mon Sep 17 00:00:00 2001 From: "mariano.iglesias" Date: Sun, 11 May 2008 16:43:16 +0000 Subject: [PATCH] Reverting check from [6791] git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6801 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/code_coverage_manager.test.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();