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