Skip to content
Permalink
Browse files

Migrating ViewTest to phpunit

  • Loading branch information...
lorenzo committed Jun 1, 2010
1 parent b2f7afc commit 0743cee22f4fe56ac57563d6ffcd81f1a2d9e32a
Showing with 0 additions and 2 deletions.
  1. +0 −2 cake/tests/cases/libs/view/view.test.php
@@ -925,12 +925,10 @@ function testEntityReference() {
function testBadExt() {
$this->PostsController->action = 'something';
$this->PostsController->ext = '.whatever';
restore_error_handler();
ob_start();
$View = new TestView($this->PostsController);
$View->render('this_is_missing');
$result = str_replace(array("\t", "\r\n", "\n"), "", ob_get_clean());
set_error_handler('simpleTestErrorHandler');
$this->assertPattern("/<em>PostsController::<\/em><em>something\(\)<\/em>/", $result);
$this->assertPattern("/posts(\/|\\\)this_is_missing.whatever/", $result);

0 comments on commit 0743cee

Please sign in to comment.
You can’t perform that action at this time.