33 $diffOp = $this->getMockBuilder(
'DiffOp' )
34 ->disableOriginalConstructor()
36 $diffOp->expects( $this->any() )
38 ->will( $this->returnValue(
$type ) );
39 $diffOp->expects( $this->any() )
41 ->will( $this->returnValue( $orig ) );
42 if (
$type ===
'change' ) {
43 $diffOp->expects( $this->any() )
44 ->method(
'getClosing' )
45 ->with( $this->isType(
'integer' ) )
46 ->will( $this->returnCallback(
function () {
50 $diffOp->expects( $this->any() )
51 ->method(
'getClosing' )
52 ->will( $this->returnValue( $closing ) );