From cb86ba067bed21af683ad360b869542d2dca6f35 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 9 Jan 2025 11:03:30 +0100 Subject: [PATCH] simplify test --- .../Component/TypeInfo/Tests/Type/CollectionTypeTest.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php b/src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php index 297e5bc6d13cf..f4f2b1caeb87d 100644 --- a/src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php +++ b/src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php @@ -119,9 +119,6 @@ public function testAccepts() $this->assertTrue($type->accepts(new \ArrayObject([1 => true]))); $this->assertFalse($type->accepts(new \ArrayObject(['foo' => true]))); - - $type = new CollectionType(Type::generic(Type::builtin(TypeIdentifier::ITERABLE), Type::int(), Type::bool())); - $this->assertTrue($type->accepts(new \ArrayObject([0 => true, 1 => false]))); $this->assertFalse($type->accepts(new \ArrayObject([0 => true, 1 => 'string']))); }