phpstreams\tests\unit\StreamTest::testIsSortedWithSortedSource PHP Method

testIsSortedWithSortedSource() public method

    public function testIsSortedWithSortedSource()
    {
        $sortedSource = $this->getMockBuilder('phpstreams\\Stream')->disableOriginalConstructor()->getMock();
        $sortedSource->expects($this->once())->method('isSorted')->willReturn(true);
        $instance = new Stream($sortedSource);
        $this->assertTrue($instance->isSorted());
    }