public function testPassNoCollection($fn) { $this->expectArgumentError($fn . '() expects parameter 1 to be array or instance of Traversable'); $fn('invalidCollection', 'strlen'); }