public function testPassNonCallable($functionName) { $this->expectArgumentError(sprintf("Argument 2 passed to %s() must be callable", $functionName)); $functionName($this->list, 'undefinedFunction'); }