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