public function testBuildFromIteratorInvalid() { $this->setExpectedException('CmPayments\\Crate\\Exception\\UnexpectedValueException', 'The iterator value "resource" was not expected.'); $this->crate->buildFromIterator(new ArrayIterator(array('stream' => STDOUT))); }