diff --git a/cake/tests/cases/libs/view/helpers/session.test.php b/cake/tests/cases/libs/view/helpers/session.test.php index c9be0f7b3..db4bf0ef9 100644 --- a/cake/tests/cases/libs/view/helpers/session.test.php +++ b/cake/tests/cases/libs/view/helpers/session.test.php @@ -42,7 +42,7 @@ App::import('Helper', array('Session')); class SessionHelperTest extends CakeTestCase { /** * setUp method - * + * * @access public * @return void */ @@ -79,7 +79,7 @@ class SessionHelperTest extends CakeTestCase { } /** * tearDown method - * + * * @access public * @return void */ @@ -89,7 +89,7 @@ class SessionHelperTest extends CakeTestCase { } /** * testRead method - * + * * @access public * @return void */ @@ -102,7 +102,7 @@ class SessionHelperTest extends CakeTestCase { } /** * testCheck method - * + * * @access public * @return void */ @@ -117,7 +117,7 @@ class SessionHelperTest extends CakeTestCase { } /** * testWrite method - * + * * @access public * @return void */ @@ -127,7 +127,7 @@ class SessionHelperTest extends CakeTestCase { } /** * testFlash method - * + * * @access public * @return void */ @@ -146,7 +146,7 @@ class SessionHelperTest extends CakeTestCase { $this->Session->flash('classy'); $result = ob_get_clean(); $this->assertEqual($result, $expected); - + Configure::write('viewPaths', array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS)); $controller = new Controller(); $this->Session->view = new View($controller); @@ -156,6 +156,7 @@ class SessionHelperTest extends CakeTestCase { $result = ob_get_contents(); ob_clean(); + $result = str_replace("\r\n", "\n", $result); $expected = "
\n\t

Alert!

\n\t

Notice!

\n\t

This is a test of the emergency broadcasting system

\n
"; $this->assertEqual($result, $expected); $this->assertFalse($this->Session->check('Message.notification')); @@ -171,7 +172,7 @@ class SessionHelperTest extends CakeTestCase { } /** * testID method - * + * * @access public * @return void */ @@ -182,7 +183,7 @@ class SessionHelperTest extends CakeTestCase { } /** * testError method - * + * * @access public * @return void */ @@ -197,7 +198,7 @@ class SessionHelperTest extends CakeTestCase { } /** * testDisabling method - * + * * @access public * @return void */ @@ -218,7 +219,7 @@ class SessionHelperTest extends CakeTestCase { } /** * testValid method - * + * * @access public * @return void */ diff --git a/cake/tests/cases/libs/view/theme.test.php b/cake/tests/cases/libs/view/theme.test.php index fd3a2e740..32b10fa42 100644 --- a/cake/tests/cases/libs/view/theme.test.php +++ b/cake/tests/cases/libs/view/theme.test.php @@ -236,7 +236,7 @@ class ThemeViewTest extends UnitTestCase { $expected = str_replace(array("\t", "\r\n", "\n"), "", ob_get_clean()); set_error_handler('simpleTestErrorHandler'); $this->assertPattern("/PagesController::/", $expected); - $this->assertPattern("/views\/themed\/my_theme\/pages\/does_not_exist.ctp/", $expected); + $this->assertPattern("/views(\/|\\\)themed(\/|\\\)my_theme(\/|\\\)pages(\/|\\\)does_not_exist.ctp/", $expected); } /** * testMissingLayout method @@ -258,7 +258,7 @@ class ThemeViewTest extends UnitTestCase { $expected = str_replace(array("\t", "\r\n", "\n"), "", ob_get_clean()); set_error_handler('simpleTestErrorHandler'); $this->assertPattern("/Missing Layout/", $expected); - $this->assertPattern("/views\/themed\/my_theme\/layouts\/whatever.ctp/", $expected); + $this->assertPattern("/views(\/|\\\)themed(\/|\\\)my_theme(\/|\\\)layouts(\/|\\\)whatever.ctp/", $expected); } /** * tearDown method @@ -270,7 +270,6 @@ class ThemeViewTest extends UnitTestCase { unset($this->ThemeView); unset($this->PostsController); unset($this->Controller); - } } ?>