/** * @test * @expectedException UnexpectedValueException */ public function testAssertIsCollectionForNonCollections() { IterUtil::assertIsCollection(1); }
public function unshiftAll($collection) { IterUtil::assertIsCollection($collection); foreach ($collection as $element) { $this->unshift($element); } return $this; }