Browse Source

fix variable name typo

inoas 9 years ago
parent
commit
4c40f2fdad
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/Error/ExceptionRendererTest.php

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

@@ -430,7 +430,7 @@ class ExceptionRendererTest extends TestCase
         Router::setRequestInfo($request);
 
         $exception = new NotFoundException('Custom message');
-        $execptionLine = __LINE__ - 1;
+        $exceptionLine = __LINE__ - 1;
         $ExceptionRenderer = new ExceptionRenderer($exception);
         $ExceptionRenderer->controller->response = $this->getMockBuilder('Cake\Network\Response')
             ->setMethods(['statusCode', '_sendHeader'])
@@ -443,7 +443,7 @@ class ExceptionRendererTest extends TestCase
             'url' => '/posts/view/1000?sort=title&direction=desc',
             'code' => 404,
             'file' => __FILE__,
-            'line' => $execptionLine
+            'line' => $exceptionLine
         ];
 
         $this->assertEquals($expected, json_decode($result, true));