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