public function testExceptionThrownInMagicGetWhileIteratingIterator() { $this->setExpectedException('DomainException', '__get exception: foobar'); pluck($this->getExceptionIterator, 'foobar'); }