ソースを参照

[HttpKernel] fixed previous commit

Fabien Potencier 14 年 前
コミット
28fec7e4d8

+ 2 - 2
tests/Symfony/Tests/Component/HttpKernel/Debug/ExceptionListenerTest.php

@@ -82,7 +82,7 @@ class ExceptionListenerTest extends \PHPUnit_Framework_TestCase
         }
 
         $this->assertEquals(3, $logger->countErrors());
-        $this->assertEquals(3, count($logger->getLogs('err')));
+        $this->assertEquals(3, count($logger->getLogs('crit')));
     }
 
     public function provider()
@@ -103,7 +103,7 @@ class TestLogger extends Logger implements DebugLoggerInterface
 {
     public function countErrors()
     {
-        return count($this->logs['err']);
+        return count($this->logs['crit']);
     }
 
     public function getDebugLogger()