protected function setUp() { parent::setUp(); $this->root = vfsStream::setup('root', null, array('DependencyInjection')); vfsStream::copyFromFileSystem(__DIR__ . '/../../../../Resources/skeleton', $this->root); $this->extensionGenerator = new ExtensionGenerator(vfsStream::url('root/app-theme')); }
protected function setUp() { parent::setUp(); $this->root = vfsStream::setup('root', null, array('template', 'Slots' => array(), 'app' => array('Resources' => array('views' => array('MyThemeBundle' => array()))))); vfsStream::copyFromFileSystem(__DIR__ . '/../../../../Resources/skeleton', $this->root); $this->templateGenerator = new TemplateGenerator(vfsStream::url('root/app-theme')); }
protected function setUp() { parent::setUp(); $this->root = vfsStream::setup('root', null, array('slots', 'Slots' => array(), 'app' => array('Resources' => array('views' => array('MyThemeBundle' => array()))))); $skeletonDir = __DIR__ . '/../../../../Resources/skeleton'; if (!is_dir($skeletonDir)) { $skeletonDir = __DIR__ . '/Resources/skeleton'; if (!is_dir($skeletonDir)) { $this->markTestSkipped('skeleton dir is not available.'); } } vfsStream::copyFromFileSystem($skeletonDir, $this->root); $this->slotsGenerator = new SlotsGenerator(vfsStream::url('root/app-theme')); }
protected function setUp() { parent::setUp(); $this->root = vfsStream::setup('root', null, array('Theme' => array(), 'Slots' => array(), 'app' => array('Resources' => array('views' => array('MyThemeBundle' => array()))))); }