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