Skip to content

Commit 860dd49

Browse files
committed
[Validator] Fix TraceableValidator is reset on data collector instantiation
1 parent 9e85e0b commit 860dd49

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

DataCollector/ValidatorDataCollector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public function collect(Request $request, Response $response, \Exception $except
4545

4646
public function reset()
4747
{
48-
$this->validator->reset();
4948
$this->data = array(
5049
'calls' => $this->cloneVar(array()),
5150
'violations_count' => 0,

Tests/DataCollector/ValidatorDataCollectorTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ public function testReset()
7070

7171
$this->assertCount(0, $collector->getCalls());
7272
$this->assertSame(0, $collector->getViolationsCount());
73-
74-
$collector->lateCollect();
75-
76-
$this->assertCount(0, $collector->getCalls());
77-
$this->assertSame(0, $collector->getViolationsCount());
7873
}
7974

8075
protected function createMock($classname)

0 commit comments

Comments
 (0)