Bolt\Tests\Asset\AssetsProviderTest::getApp PHP Метод

getApp() защищенный Метод

protected getApp ( $boot = true )
    protected function getApp($boot = true)
    {
        $app = parent::getApp(false);
        $mock = $this->getMockBuilder(BoltVersionStrategy::class)->setMethods(['getVersion'])->setConstructorArgs([$app['filesystem']->getFilesystem('extensions')->getDir(''), $app['asset.salt']])->getMock();
        $mock->expects($this->any())->method('getVersion')->will($this->returnCallback(function ($fileName) {
            return md5($fileName);
        }));
        $app['asset.version_strategy'] = $app->protect(function () use($mock) {
            return $mock;
        });
        $app->boot();
        return $app;
    }