Illuminate\Support\Facades\Facade::createMockByName PHP Méthode

createMockByName() protected static méthode

Create a fresh mock instance for the given class.
protected static createMockByName ( string $name ) : Mockery\MockInterface
$name string
Résultat Mockery\MockInterface
    protected static function createMockByName($name)
    {
        $class = static::getMockableClass($name);
        return $class ? Mockery::mock($class) : Mockery::mock();
    }