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