Преглед на файлове

[HttpKernel] fixed previous commit

Fabien Potencier преди 14 години
родител
ревизия
28fec7e4d8
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      tests/Symfony/Tests/Component/HttpKernel/Debug/ExceptionListenerTest.php

+ 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()