public function create($classToMock)
    {
        $mockBuilder = new \PHPUnit_Framework_MockObject_MockBuilder(
            $this->testCase, $classToMock
        );
        $mockBuilder->disableOriginalConstructor();
        return $mockBuilder->getMock();
    }
public function create($classToMock)
    {
        $mockBuilder = new \PHPUnit_Framework_MockObject_MockBuilder(
            $this->testCase, $classToMock
        );
        $mockBuilder->disableOriginalConstructor();
        return $mockBuilder->getMock();
    }
public function create ( $ classToMock ) { $ mockBuilder = new \ PHPUnit_Framework_MockObject_MockBuilder ( $ this -> testCase , $ classToMock ) ; $ mockBuilder -> disableOriginalConstructor ( ) ; return $ mockBuilder -> getMock ( ) ; }
Creates simple PHPUnit Mock Object with disabled original constructor
@param string $classToMock
@return \PHPUnit_Framework_MockObject_MockObject
Creates simple PHPUnit Mock Object with disabled original constructor