mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 10:36:16 +00:00
Cleaned out unecessary code in error.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6865 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6f4c58377c
commit
fcfd9be4bb
1 changed files with 0 additions and 6 deletions
|
@ -52,11 +52,6 @@ class TestErrorController extends TestAppController {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
class TestAppErrorController extends TestAppController {
|
|
||||||
function apperror($method, $message) {
|
|
||||||
return sprintf('Error: %s Message: %s', $method, $message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Short description for class.
|
* Short description for class.
|
||||||
*
|
*
|
||||||
|
@ -85,7 +80,6 @@ class ErrorHandlerTest extends CakeTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
function testError() {
|
function testError() {
|
||||||
//Cannot test Error currently as calling it creates an exit();
|
|
||||||
ob_start();
|
ob_start();
|
||||||
$ErrorHandler = new ErrorHandler('error404', array('message' => 'Page not found'));
|
$ErrorHandler = new ErrorHandler('error404', array('message' => 'Page not found'));
|
||||||
ob_clean();
|
ob_clean();
|
||||||
|
|
Loading…
Add table
Reference in a new issue