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