Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f51c2d8

Browse filesBrowse files
minor #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
Copy full SHA for f51c2d8

File tree

Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php
-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.