Skip to content

Commit f51c2d8

Browse files
minor symfony#59448 [TypeInfo] simplify test (xabbuh)
This PR was merged into the 7.3 branch. Discussion ---------- [TypeInfo] simplify test | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- cb86ba0 simplify test
2 parents 4dcb217 + cb86ba0 commit f51c2d8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ public function testAccepts()
119119

120120
$this->assertTrue($type->accepts(new \ArrayObject([1 => true])));
121121
$this->assertFalse($type->accepts(new \ArrayObject(['foo' => true])));
122-
123-
$type = new CollectionType(Type::generic(Type::builtin(TypeIdentifier::ITERABLE), Type::int(), Type::bool()));
124-
125122
$this->assertTrue($type->accepts(new \ArrayObject([0 => true, 1 => false])));
126123
$this->assertFalse($type->accepts(new \ArrayObject([0 => true, 1 => 'string'])));
127124
}

0 commit comments

Comments
 (0)