Functional\Tests\TailTest::testWithoutCallback PHP Method

testWithoutCallback() public method

public testWithoutCallback ( )
    public function testWithoutCallback()
    {
        $this->assertSame([1 => 2, 2 => 3, 3 => 4], tail($this->list));
        $this->assertSame([1 => 2, 2 => 3, 3 => 4], tail($this->list, null));
        $this->assertSame([1 => 2, 2 => 3, 3 => 4], tail($this->listIterator));
        $this->assertSame([1 => 2, 2 => 3, 3 => 4], tail($this->listIterator, null));
        $this->assertSame([1 => 'bar', 2 => 'baz'], tail($this->badArray));
        $this->assertSame([1 => 'bar', 2 => 'baz'], tail($this->badArray, null));
        $this->assertSame([1 => 'bar', 2 => 'baz'], tail($this->badIterator));
        $this->assertSame([1 => 'bar', 2 => 'baz'], tail($this->badIterator, null));
    }