From a1cfdb421af21df824cb17864bd9f88225041262 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 19 Sep 2013 11:47:13 +0200 Subject: [PATCH] fixed phpdoc --- src/Symfony/Component/Debug/ErrorHandler.php | 2 +- .../Tests/DependencyInjection/RegisterListenersPassTest.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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));