From 3dabae1c553ce616e25be93ece8ad928a54e0210 Mon Sep 17 00:00:00 2001 From: Sergey Rabochiy Date: Tue, 15 May 2018 17:31:35 +0700 Subject: [PATCH] Fix tests in ArgumentMetadataFactoryTest --- .../ControllerMetadata/ArgumentMetadataFactoryTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php b/src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php index a667705f50813..1c6359eac71ea 100644 --- a/src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php @@ -36,9 +36,10 @@ public function testSignature1() $arguments = $this->factory->createArgumentMetadata(array($this, 'signature1')); $this->assertEquals(array( - new ArgumentMetadata('foo', self::class, false, false, null), + new ArgumentMetadata('foo', 'self', false, false, null), new ArgumentMetadata('bar', 'array', false, false, null), new ArgumentMetadata('baz', 'callable', false, false, null), + new ArgumentMetadata('quux', TestCase::class, false, false, null), ), $arguments); } @@ -47,7 +48,7 @@ public function testSignature2() $arguments = $this->factory->createArgumentMetadata(array($this, 'signature2')); $this->assertEquals(array( - new ArgumentMetadata('foo', self::class, false, true, null, true), + new ArgumentMetadata('foo', 'self', false, true, null, true), new ArgumentMetadata('bar', __NAMESPACE__.'\FakeClassThatDoesNotExist', false, true, null, true), new ArgumentMetadata('baz', 'Fake\ImportedAndFake', false, true, null, true), ), $arguments); @@ -117,7 +118,7 @@ public function testNullableTypesSignature() ), $arguments); } - private function signature1(self $foo, array $bar, callable $baz) + private function signature1(self $foo, array $bar, callable $baz, TestCase $quux) { }