Skip to content

Commit 9d64921

Browse files
committed
-
1 parent c98acad commit 9d64921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Validator/Tests/Validator/RecursiveValidatorTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ public function testDisableTraversableTraversal()
787787

788788
public function testMetadataMustExistIfTraversalIsDisabled()
789789
{
790-
790+
$entity = new Entity();
791791
$entity->reference = new \ArrayIterator();
792792

793793
$this->metadata->addPropertyConstraint('reference', new Valid([
@@ -796,7 +796,7 @@ public function testMetadataMustExistIfTraversalIsDisabled()
796796

797797
$this->expectException(NoSuchMetadataException::class);
798798

799-
$this->validate(new Entity());
799+
$this->validate($entity);
800800
}
801801

802802
public function testEnableRecursiveTraversableTraversal()

0 commit comments

Comments
 (0)