public function testExceptionThrownInMagicIssetWhileIteratingIterator() { $this->setExpectedException('DomainException', '__isset exception: foobar'); pluck($this->issetExceptionIterator, 'foobar'); }