Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cefde58

Browse files
committed
Add tearDownAfterClass method to clear validator property
1 parent 9e1d21c commit cefde58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Symfony/Component/Form/Test/TypeTestCase.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ protected function setUp()
3535
$this->builder = new FormBuilder(null, null, $this->dispatcher, $this->factory);
3636
}
3737

38+
protected function tearDownAfterClass()
39+
{
40+
if (in_array(ValidatorExtensionTrait::class, class_uses($this))) {
41+
$this->validator = null;
42+
}
43+
}
44+
3845
protected function getExtensions()
3946
{
4047
$extensions = array();

0 commit comments

Comments
 (0)