/** * @param Collection $collection * @depends testConstruct */ public function testClear(Collection $collection) { $check = $collection->clear(); $this->assertSame($collection, $check, 'Expecting `clear` to be chainable.'); $this->assertEmpty($collection->toArray()); }