public function testPassNoCollection() { $this->expectArgumentError('Functional\\invoke() expects parameter 1 to be array or instance of Traversable'); invoke('invalidCollection', 'method'); }