Jyxo\Spl\ArrayUtilTest::testRangeInt PHP Method

testRangeInt() public method

Tests a simple integer range.
public testRangeInt ( )
    public function testRangeInt()
    {
        $range = ArrayUtil::range(1, 6, function ($current) {
            return $current + 1;
        });
        $this->assertEquals(range(1, 6), $range);
    }