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