| 16591 |
anikendra |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* Exception Renderer
|
|
|
4 |
*
|
|
|
5 |
* Provides Exception rendering features. Which allow exceptions to be rendered
|
|
|
6 |
* as HTML pages.
|
|
|
7 |
*
|
|
|
8 |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
|
|
9 |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
10 |
*
|
|
|
11 |
* Licensed under The MIT License
|
|
|
12 |
* For full copyright and license information, please see the LICENSE.txt
|
|
|
13 |
* Redistributions of files must retain the above copyright notice.
|
|
|
14 |
*
|
|
|
15 |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
16 |
* @link http://cakephp.org CakePHP(tm) Project
|
|
|
17 |
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Error
|
|
|
18 |
* @since CakePHP(tm) v 2.0
|
|
|
19 |
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
|
20 |
*/
|
|
|
21 |
|
|
|
22 |
App::uses('ExceptionRenderer', 'Error');
|
|
|
23 |
|
|
|
24 |
/**
|
|
|
25 |
* Class TestPluginExceptionRenderer
|
|
|
26 |
*
|
|
|
27 |
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Error
|
|
|
28 |
*/
|
|
|
29 |
class TestPluginExceptionRenderer extends ExceptionRenderer {
|
|
|
30 |
|
|
|
31 |
/**
|
|
|
32 |
* Renders the response for the exception.
|
|
|
33 |
*
|
|
|
34 |
* @return void
|
|
|
35 |
*/
|
|
|
36 |
public function render() {
|
|
|
37 |
echo 'Rendered by test plugin';
|
|
|
38 |
}
|
|
|
39 |
}
|