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