コード例 #1
0
ファイル: IterUtilTest.php プロジェクト: suramon/itertools
 /**
  * @test
  * @expectedException UnexpectedValueException
  */
 public function testAssertIsCollectionForNonCollections()
 {
     IterUtil::assertIsCollection(1);
 }
コード例 #2
0
ファイル: Queue.php プロジェクト: suramon/itertools
 public function unshiftAll($collection)
 {
     IterUtil::assertIsCollection($collection);
     foreach ($collection as $element) {
         $this->unshift($element);
     }
     return $this;
 }