From 25033f1599df3d5a9616a2c31fb3391a3676e057 Mon Sep 17 00:00:00 2001 From: DarkAngelBGE Date: Mon, 5 May 2008 14:35:39 +0000 Subject: [PATCH] removing two Router::url() relevant test cases for cli test reporting git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6757 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/router.test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cake/tests/cases/libs/router.test.php b/cake/tests/cases/libs/router.test.php index 03e570ae7..e4038711f 100644 --- a/cake/tests/cases/libs/router.test.php +++ b/cake/tests/cases/libs/router.test.php @@ -52,8 +52,10 @@ class RouterTest extends UnitTestCase { } function testFullBaseURL() { - $this->assertPattern('/^http(s)?:\/\//', Router::url('/', true)); - $this->assertPattern('/^http(s)?:\/\//', Router::url(null, true)); + if (php_sapi_name() != 'cli') { + $this->assertPattern('/^http(s)?:\/\//', Router::url('/', true)); + $this->assertPattern('/^http(s)?:\/\//', Router::url(null, true)); + } } function testRouteWriting() {