$mock = $this->getMock('SomeClass');
$mock = $this->getMockBuilder('SomeClass') ->setMethods(array('foo')) ->getMock();
$mock = $this->getMockBuilder('SomeClass') ->disableOriginalConstructor() ->getMock();This code creates a mock object of the class 'SomeClass', but disables the execution of its constructor. PHPUnit_Framework_MockObject_MockObject is a class in the PHPUnit testing framework package library.