sajad torkamani

createMock(ClassOrInterfaceName::class) creates a mock object for the argument, replacing all its methods with a no-op equivalent.

createPartialMock(ClassOrInterfaceName:class, ['<method>']) creates a partial mock so that only the specified methods are replaced with a no-op equivalent. All other methods retain their original implementation.

Tagged: PHPUnit