public function testPassNonCallable() { $this->expectArgumentError('Argument 2 passed to Functional\\last() must be callable'); last($this->list, 'undefinedFunction'); }