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