diff --git a/src/Symfony/Component/Debug/ErrorHandler.php b/src/Symfony/Component/Debug/ErrorHandler.php index 87e0c037e2..e6fa719253 100644 --- a/src/Symfony/Component/Debug/ErrorHandler.php +++ b/src/Symfony/Component/Debug/ErrorHandler.php @@ -58,7 +58,7 @@ class ErrorHandler * @param integer $level The level at which the conversion to Exception is done (null to use the error_reporting() value and 0 to disable) * @param Boolean $displayErrors Display errors (for dev environment) or just log they (production usage) * - * @return The registered error handler + * @return ErrorHandler The registered error handler */ public static function register($level = null, $displayErrors = true) { diff --git a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterListenersPassTest.php b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterListenersPassTest.php index 92a41239d6..ade85bb1f1 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterListenersPassTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterListenersPassTest.php @@ -80,6 +80,10 @@ class RegisterListenersPassTest extends \PHPUnit_Framework_TestCase ->method('findTaggedServiceIds') ->will($this->onConsecutiveCalls(array(), $services)); + $builder->expects($this->atLeastOnce()) + ->method('getDefinition') + ->will($this->returnValue($definition)); + $builder->expects($this->atLeastOnce()) ->method('findDefinition') ->will($this->returnValue($definition));