Functional\Tests\SumTest::testPassNoCollection PHP Méthode

testPassNoCollection() public méthode

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