diff --git a/app/webroot/test.php b/app/webroot/test.php index 068753064a2..f18be099fdb 100644 --- a/app/webroot/test.php +++ b/app/webroot/test.php @@ -90,7 +90,7 @@ } if (Configure::read('debug') < 1) { - die(__d('cake_dev', 'Debug setting does not allow access to this url.')); + throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this url.')); } require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php'; diff --git a/lib/Cake/Console/Templates/skel/webroot/test.php b/lib/Cake/Console/Templates/skel/webroot/test.php index 3d2e80a6577..f29ecbc42ed 100644 --- a/lib/Cake/Console/Templates/skel/webroot/test.php +++ b/lib/Cake/Console/Templates/skel/webroot/test.php @@ -90,7 +90,7 @@ } if (Configure::read('debug') < 1) { - die(__d('cake_dev', 'Debug setting does not allow access to this url.')); + throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this url.')); } require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php';