/**
  * @dataProvider testObjects
  */
 public function testIfListHasNoItemAfterClearingIt(array $testItems)
 {
     $list = new GenericList(TestType::class);
     foreach ($testItems as $testItem) {
         $list->add($testItem);
     }
     $list->clear();
     $this->assertEquals(0, $list->count());
 }