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