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