/** * @test */ public function it_should_clear_the_collection() { if ($this->coll instanceof MapInterface) { $this->coll->add(new Pair(0, 'value')); } else { $this->coll->add('value'); } $this->coll->clear(); $this->assertTrue($this->coll->isEmpty()); }