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