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