public function testGetIterator() { $audio = $this->getStreamMock(); $video = $this->getStreamMock(); $collection = new StreamCollection(array($audio, $video)); $this->assertInstanceOf('\\Iterator', $collection->getIterator()); $this->assertCount(2, $collection->getIterator()); }