Functional\Tests\SumTest::testPassNoCollection PHP Method

testPassNoCollection() public method

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