public static function createFactory(callable $configureMockProvider = null) {
        $factory = new Factory();

        $provider = new MockProvider($factory);

        if ($configureMockProvider) {
            $configureMockProvider($provider);
        }

        $factory->setProvider('StdClass', $provider);
        return $factory;
    }
public static function createFactory(callable $configureMockProvider = null) {
        $factory = new Factory();

        $provider = new MockProvider($factory);

        if ($configureMockProvider) {
            $configureMockProvider($provider);
        }

        $factory->setProvider('StdClass', $provider);
        return $factory;
    }
public static function createFactory ( callable $ configureMockProvider = null ) { $ factory = new Factory ( ) ; $ provider = new MockProvider ( $ factory ) ; if ( $ configureMockProvider ) { $ configureMockProvider ( $ provider ) ; } $ factory -> setProvider ( 'StdClass' , $ provider ) ; return $ factory ; }
Creates a Factory with MockProvider set as default Provider

@param callable $configureMockProvider Receives the MockProvider to be configured
@return Factory
Creates a Factory with MockProvider set as default Provider