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