mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
closes #4552, error test disabled when run from console
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6740 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
2c061ede2b
commit
48f0131d50
1 changed files with 13 additions and 10 deletions
|
@ -26,6 +26,9 @@
|
|||
* @lastmodified $Date$
|
||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||
*/
|
||||
if (class_exists('ErrorHandler')) {
|
||||
return;
|
||||
}
|
||||
App::import('Core', array('Error', 'Controller'));
|
||||
|
||||
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
|
||||
|
@ -58,7 +61,7 @@ class TestErrorController extends TestAppController {
|
|||
class ErrorHandlerTest extends UnitTestCase {
|
||||
|
||||
function skip() {
|
||||
$this->skipif (false, 'ErrorHandlerTest not implemented');
|
||||
$this->skipif ((php_sapi_name() == 'cli'), 'ErrorHandlerTest cannot be run from console');
|
||||
}
|
||||
|
||||
function testFromBeforeFilter() {
|
||||
|
|
Loading…
Add table
Reference in a new issue