Skip to content

Commit bda19a0

Browse files
committed
improve an assertion
1 parent aa54aff commit bda19a0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -570,14 +570,8 @@ public function testReset()
570570
$this->dataCollector->buildPreliminaryFormTree($form);
571571
$this->dataCollector->collectSubmittedData($form);
572572

573-
$this->assertNotSame(
574-
[
575-
'forms' => [],
576-
'forms_by_hash' => [],
577-
'nb_errors' => 0,
578-
],
579-
$this->dataCollector->getData()
580-
);
573+
$this->assertGreaterThan(0, count($this->dataCollector->getData()['forms']));
574+
$this->assertGreaterThan(0, count($this->dataCollector->getData()['forms_by_hash']));
581575

582576
$this->dataCollector->reset();
583577

0 commit comments

Comments
 (0)