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() {