From a16b56d7157cba174d40a9ec4394845c6ad0f906 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 18 Apr 2022 19:40:34 +0200 Subject: [PATCH] improve an assertion --- .../Extension/DataCollector/FormDataCollectorTest.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php b/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php index 520f707f14df6..39009b598c530 100644 --- a/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php @@ -570,14 +570,8 @@ public function testReset() $this->dataCollector->buildPreliminaryFormTree($form); $this->dataCollector->collectSubmittedData($form); - $this->assertNotSame( - [ - 'forms' => [], - 'forms_by_hash' => [], - 'nb_errors' => 0, - ], - $this->dataCollector->getData() - ); + $this->assertGreaterThan(0, \count($this->dataCollector->getData()['forms'])); + $this->assertGreaterThan(0, \count($this->dataCollector->getData()['forms_by_hash'])); $this->dataCollector->reset();