Skip to content

Commit 5acc85c

Browse files
committed
Update ReflectionExtractorTest.php
1 parent d0a2dc0 commit 5acc85c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,19 +299,19 @@ public function getInitializableProperties(): array
299299
*/
300300
public function testExtractTypeConstructor(string $class, string $property, array $type = null)
301301
{
302-
// check that constructor extractions works by default, and if passed in via context. Check that null is returned if constructor extraction is disabled
303-
$this->assertEquals($type, $this->extractor->getTypes($class, $property, []));
304-
$this->assertEquals($type, $this->extractor->getTypes($class, $property, ['enable_constructor_extraction' => true]));
305-
$this->assertEquals( null, $this->extractor->getTypes($class, $property, ['enable_constructor_extraction' => false]));
302+
// check that constructor extractions works by default, and if passed in via context. Check that null is returned if constructor extraction is disabled
303+
$this->assertEquals($type, $this->extractor->getTypes($class, $property, []));
304+
$this->assertEquals($type, $this->extractor->getTypes($class, $property, ['enable_constructor_extraction' => true]));
305+
$this->assertEquals( null, $this->extractor->getTypes($class, $property, ['enable_constructor_extraction' => false]));
306306
}
307307

308308
public function ConstructorTypesProvider(): array
309309
{
310310
return [
311-
// php71 dummy has following constructor: __construct(string $string, int $intPrivate)
311+
// php71 dummy has following constructor: __construct(string $string, int $intPrivate)
312312
[Php71Dummy::class, 'string', [new Type(Type::BUILTIN_TYPE_STRING, false)] ],
313313
[Php71Dummy::class, 'intPrivate', [new Type(Type::BUILTIN_TYPE_INT, false)] ],
314-
// Php71DummyExtended2 adds int $intWithAccessor
314+
// Php71DummyExtended2 adds int $intWithAccessor
315315
[Php71DummyExtended2::class, 'intWithAccessor', [new Type(Type::BUILTIN_TYPE_INT, false)] ],
316316
[Php71DummyExtended2::class, 'intPrivate', [new Type(Type::BUILTIN_TYPE_INT, false)] ],
317317
[DefaultValue::class, 'foo', null ],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy