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