From 5acc85c48bca3fb1f803dc8cdec7a62c9174b5fb Mon Sep 17 00:00:00 2001 From: Mantis Development Date: Sat, 23 Feb 2019 17:23:43 +0000 Subject: [PATCH] Update ReflectionExtractorTest.php --- .../Tests/Extractor/ReflectionExtractorTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php index cbd1b92c1d..898ea572b3 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php @@ -299,19 +299,19 @@ class ReflectionExtractorTest extends TestCase */ public function testExtractTypeConstructor(string $class, string $property, array $type = null) { - // check that constructor extractions works by default, and if passed in via context. Check that null is returned if constructor extraction is disabled - $this->assertEquals($type, $this->extractor->getTypes($class, $property, [])); - $this->assertEquals($type, $this->extractor->getTypes($class, $property, ['enable_constructor_extraction' => true])); - $this->assertEquals( null, $this->extractor->getTypes($class, $property, ['enable_constructor_extraction' => false])); + // check that constructor extractions works by default, and if passed in via context. Check that null is returned if constructor extraction is disabled + $this->assertEquals($type, $this->extractor->getTypes($class, $property, [])); + $this->assertEquals($type, $this->extractor->getTypes($class, $property, ['enable_constructor_extraction' => true])); + $this->assertEquals( null, $this->extractor->getTypes($class, $property, ['enable_constructor_extraction' => false])); } public function ConstructorTypesProvider(): array { return [ - // php71 dummy has following constructor: __construct(string $string, int $intPrivate) + // php71 dummy has following constructor: __construct(string $string, int $intPrivate) [Php71Dummy::class, 'string', [new Type(Type::BUILTIN_TYPE_STRING, false)] ], [Php71Dummy::class, 'intPrivate', [new Type(Type::BUILTIN_TYPE_INT, false)] ], - // Php71DummyExtended2 adds int $intWithAccessor + // Php71DummyExtended2 adds int $intWithAccessor [Php71DummyExtended2::class, 'intWithAccessor', [new Type(Type::BUILTIN_TYPE_INT, false)] ], [Php71DummyExtended2::class, 'intPrivate', [new Type(Type::BUILTIN_TYPE_INT, false)] ], [DefaultValue::class, 'foo', null ],