Exemplo n.º 1
0
 public function tearDown()
 {
     if ($this->resetTestModuleAtTearDown) {
         ModuleWriteableMock::tearDown();
     }
     parent::tearDown();
 }
Exemplo n.º 2
0
 protected function tearDown()
 {
     $creatorTempDirectory = Registry::getConfig()->creator->directory;
     $workingDirectory = $this->getWorkingDirectory();
     DirectoryHelper::removeRecursiv($workingDirectory, $creatorTempDirectory);
     parent::tearDown();
 }
Exemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     RenderContext::reset();
     // Render-Typ des RenderContext auf Dynamisch setzen ( muss ganz am Anfang kommen)
     RenderContext::setRenderType(RenderContext::RENDER_DYNAMIC);
 }
Exemplo n.º 4
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     // Uebersetzung vorhanden?
     if (!Registry::isRegistered('Zend_Translate')) {
         // Locale erweitern; Lade Uebersetzungen und speichere Translate Objekt in der Registry
         $lang = 'de';
         $locale = new \Zend_Locale();
         $locale->setLocale($lang);
         $langFile = APPLICATION_PATH . '/translations/' . $lang . '.php';
         Registry::set('Zend_Translate', new \Zend_Translate('array', $langFile, $locale->getLanguage()));
     }
 }
Exemplo n.º 5
0
 protected function setUp()
 {
     DirectoryHelper::clearDirectory($this->getTempDirectory());
     DirectoryHelper::clearDirectory($this->getOutputDirectory());
     parent::setUp();
 }
Exemplo n.º 6
0
 protected function setUp()
 {
     parent::setUp();
     $this->dao = new TemplateDao();
 }
Exemplo n.º 7
0
 protected function setUp()
 {
     parent::setUp();
     $this->dao = new WebsiteDao();
 }
Exemplo n.º 8
0
 protected function setUp()
 {
     parent::setUp();
     $this->jsonStorageDirectory = Registry::getConfig()->test->templatesnippet->storage->directory;
 }