// increasing
$this->assertEquals(
[ $this->pageId2, $this->pageId3, $this->pageId4 ],
- [ $this->pageId1 + 1, $this->pageId2 + 1, $this->pageId3 + 1 ],
+ [ $this->pageId1 + 1, $this->pageId1 + 2, $this->pageId1 + 3 ],
"Page ids increasing without holes" );
}
];
// The mock itself
- $prefetchMock = $this->getMock( 'BaseDump', [ 'prefetch' ], [], '', false );
+ $prefetchMock = $this->getMockBuilder( 'BaseDump' )
+ ->setMethods( [ 'prefetch' ] )
+ ->disableOriginalConstructor()
+ ->getMock();
$prefetchMock->expects( $this->exactly( 6 ) )
->method( 'prefetch' )
->will( $this->returnValueMap( $prefetchMap ) );