src/ShortifyPunit.php
public static function partialMock($mockedClass)
    {
        $reflection = self::getMockReflection($mockedClass);

        return static::mockClass(
            $reflection,
            self::$namespace,
            self::$classBasePrefix,
            MockTypes::PARTIAL
        );
    }
public static function partialMock($mockedClass)
    {
        $reflection = self::getMockReflection($mockedClass);

        return static::mockClass(
            $reflection,
            self::$namespace,
            self::$classBasePrefix,
            MockTypes::PARTIAL
        );
    }
public static function partialMock ( $ mockedClass ) { $ reflection = self :: getMockReflection ( $ mockedClass ) ; return static :: mockClass ( $ reflection , self :: $ namespace , self :: $ classBasePrefix , MockTypes :: PARTIAL ) ; }
Partial Mocking interfaces & classes

@desc Partial mock is not stubbing any function by default (to NULL) like in regular mock()

Examples:
// class to partial mock
class Foo {
function bar() { return 'bar'; }
}

$mock = ShortifyPunit::mock('Foo');
$partialMock = ShortifyPunit::partialMock('Foo');

$mock->bar(); // returns NULL
echo $partialMock->bar(); // prints 'bar'

ShortifyPunit::when($partialMock)->bar()->returns('foo'); // stubbing partial mock
echo $partialMock->bar(); // prints 'foo'

@param $mockedClass
@return mixed
Partial Mocking interfaces & classes