mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Moving error handling classes into a separate directory.
Moving error handling test cases into a directory that matches the one in libs. Updating imports.
This commit is contained in:
parent
e40ee2576b
commit
284a8db3f4
7 changed files with 5 additions and 5 deletions
|
@ -26,14 +26,14 @@ error_reporting(E_ALL & ~E_DEPRECATED);
|
|||
|
||||
require CORE_PATH . 'cake' . DS . 'basics.php';
|
||||
require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php';
|
||||
require LIBS . 'exceptions.php';
|
||||
require LIBS . 'error' . DS . 'exceptions.php';
|
||||
require LIBS . 'object.php';
|
||||
require LIBS . 'inflector.php';
|
||||
require LIBS . 'app.php';
|
||||
require LIBS . 'configure.php';
|
||||
require LIBS . 'set.php';
|
||||
require LIBS . 'cache.php';
|
||||
require LIBS . 'error_handler.php';
|
||||
require LIBS . 'error' . DS . 'error_handler.php';
|
||||
|
||||
Configure::bootstrap(isset($boot) ? $boot : true);
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ class ErrorHandler {
|
|||
* @see http://php.net/manual/en/function.set-exception-handler.php
|
||||
*/
|
||||
public static function handleException(Exception $exception) {
|
||||
App::import('Core', 'ExceptionRenderer');
|
||||
App::import('Core', 'error/ExceptionRenderer');
|
||||
$config = Configure::read('Exception');
|
||||
if (!empty($config['log'])) {
|
||||
if (!class_exists('CakeLog')) {
|
|
@ -38,8 +38,8 @@ class AllErrorTest extends PHPUnit_Framework_TestSuite {
|
|||
|
||||
$libs = CORE_TEST_CASES . DS . 'libs' . DS;
|
||||
|
||||
$suite->addTestFile($libs . 'error_handler.test.php');
|
||||
$suite->addTestFile($libs . 'exception_renderer.test.php');
|
||||
$suite->addTestFile($libs . 'error' . DS . 'error_handler.test.php');
|
||||
$suite->addTestFile($libs . 'error' . DS . 'exception_renderer.test.php');
|
||||
return $suite;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue