public function testExceptionIsThrownInArray() { $this->setExpectedException('DomainException', 'Callback exception'); none($this->goodArray, [$this, 'exception']); }