ソースを参照

Fix ExceptionRendererTest

Update use statements causing this test to fail when in travis
Michael Pirouet 11 年 前
コミット
e590c7f7e6
1 ファイル変更4 行追加2 行削除
  1. 4 2
      tests/TestCase/Error/ExceptionRendererTest.php

+ 4 - 2
tests/TestCase/Error/ExceptionRendererTest.php

@@ -19,6 +19,7 @@ use Cake\Controller\Controller;
 use Cake\Controller\Exception\MissingActionException;
 use Cake\Controller\Exception\MissingComponentException;
 use Cake\Core\Configure;
+use Cake\Core\Exception\Exception as CakeException;
 use Cake\Core\Exception\MissingPluginException;
 use Cake\Core\Plugin;
 use Cake\Datasource\Exception\MissingDatasourceConfigException;
@@ -39,6 +40,7 @@ use Cake\View\Exception\MissingHelperException;
 use Cake\View\Exception\MissingLayoutException;
 use Cake\View\Exception\MissingTemplateException;
 use Exception;
+use RuntimeException;
 
 /**
  * BlueberryComponent class
@@ -589,14 +591,14 @@ class ExceptionRendererTest extends TestCase
                 500
             ],
             [
-                new \RuntimeException('another boom'),
+                new RuntimeException('another boom'),
                 [
                     '/Internal Error/'
                 ],
                 500
             ],
             [
-                new \Cake\Core\ExceptionException('base class'),
+                new CakeException('base class'),
                 ['/Internal Error/'],
                 500
             ]