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

testIsSortedWithUnsortedSource() public method

    public function testIsSortedWithUnsortedSource()
    {
        $unsortedSource = $this->getMockBuilder('phpstreams\\Stream')->disableOriginalConstructor()->getMock();
        $unsortedSource->expects($this->once())->method('isSorted')->willReturn(false);
        $instance = new Stream($unsortedSource);
        $this->assertFalse($instance->isSorted());
    }