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