public function tearDown()
 {
     ezpINIHelper::restoreINISettings();
     $this->event = null;
     ezpEvent::resetInstance();
     parent::tearDown();
 }
 public function tearDown()
 {
     $filename = 'tests/tests/lib/ezimage/data/andernach_multihandler.jpg';
     if (is_file($filename)) {
         unlink($filename);
     }
     parent::tearDown();
 }
예제 #3
0
 public function tearDown()
 {
     // Make sure to restore the RequestURI in case other tests depends on
     // on the RequestURI variable.
     $ezsys = eZSys::instance();
     $ezsys->RequestURI = $this->originalRequestURI;
     parent::tearDown();
 }
 protected function tearDown()
 {
     if (ezpTestRunner::dbPerTest()) {
         $db = eZDB::instance();
         $db->close();
     }
     parent::tearDown();
 }
 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     $this->mvcConfig = new ezpMvcConfiguration();
     // Load rest.ini and forces it to load its data
     $this->restINI = eZINI::instance('rest.ini');
     $this->restINI->load(true);
     $this->loadDummySettings();
     parent::__construct($name, $data, $dataName);
 }
예제 #6
0
 public function tearDown()
 {
     foreach (array($this->rootDir . 'a/fileA', $this->rootDir . 'a/b/fileB') as $file) {
         file_exists($file) && unlink($file);
     }
     foreach (array($this->rootDir . 'a/b/c/', $this->rootDir . 'a/b/', $this->rootDir . 'a/', $this->rootDir) as $dir) {
         file_exists($dir) && rmdir($dir);
     }
     parent::tearDown();
 }
예제 #7
0
 public function __construct()
 {
     parent::__construct();
     if (self::SORT_MODE === 'mtime') {
         // Sort by modification time to get updated tests first
         usort($this->files, array($this, 'sortTestsByMtime'));
     } else {
         // Sort it, then the file a.in will be processed first. Handy for development.
         usort($this->files, array($this, 'sortTestsByName'));
     }
 }
예제 #8
0
 public function tearDown()
 {
     // If file has been renamed, restore it at original place
     if ( file_exists( $this->destFile ) )
         rename( $this->destFile, $this->file );
     // If file has been removed, restore it as well
     if ( !file_exists( $this->file ) )
         file_put_contents ( $this->file, $this->content );
     PHPUnit_Framework_Error_Warning::$enabled = $this->warningEnabledOrig;
     parent::tearDown();
 }
 public function __construct()
 {
     parent::__construct();
     $this->setName("eZSIBlockFunctionTest");
     $this->templateResource = eZTemplate::factory();
     $this->rootNamespace = '';
     $this->currentNamespace = '';
     $this->textElements = array();
     $this->functionChildren = array();
     $this->functionParameters = array();
     $this->functionPlacement = $this->initFunctionPlacement();
 }
 public function __construct()
 {
     parent::__construct();
     $this->setName( "ezpContentPublishingBehaviour Tests" );
 }
예제 #11
0
     /**
     * Prints all tests found in $suite
     *
     * @param ezpTestCase $suite
     */
    protected function listTests( $suite )
    {
        $iterator = $suite->getIterator();
        print "Available test(s):\n";

        foreach ( $iterator as $test )
        {
            $reflectionClass = new ReflectionClass( $test );
            $currentTest = $reflectionClass->getName() . "::" . $test->getName();
            print( "- $currentTest\n" );
        }
    }
예제 #12
0
 public function __construct()
 {
     parent::__construct();
     $this->setName("eZXMLText Datatype Tests");
 }
    public function setUp()
    {
        parent::setUp();

        $this->imageIni = eZINI::instance( 'image.ini' );
    }
 public function tearDown()
 {
     parent::tearDown();
 }
예제 #15
0
 public function __construct()
 {
     parent::__construct();
     $this->setName("eZSiteaccess");
 }
예제 #16
0
 public function setUp()
 {
     parent::setUp();
     $this->file = dirname(__FILE__) . "/data/file.txt";
     $this->content = file_get_contents($this->file);
 }
 protected function tearDown()
 {
     $GLOBALS['eZDebugEnabled'] = false;
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->mobileDeviceDetect = null;
 }
 public function tearDown()
 {
     // Make sure to restore eZSys instance in case other tests depends on it
     eZSys::setInstance($this->oldSysInstance);
     parent::tearDown();
 }
 /**
  * initialize the context
  * @see tests/tests/lib/eztemplate/ezpTestCase#setUp()
  */
 public function setUp()
 {
     parent::setUp();
     $this->templateStringOperator=new eZTemplateStringOperator();
 }
예제 #21
0
 public function __construct()
 {
     parent::__construct();
     $this->setName( "eZSysTest" );
 }
예제 #22
0
 public function tearDown()
 {
     ezpINIHelper::restoreINISettings();
     eZCache::clearByID('active_extensions');
     parent::tearDown();
 }
예제 #23
0
 public function tearDown()
 {
     ezpINIHelper::restoreINISettings();
     unlink("tests/tests/lib/ezimage/data/andernach_small.jpg");
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     ezpINIHelper::restoreINISettings();
     $this->mobileDeviceDetect = null;
 }
예제 #25
0
 public function tearDown()
 {
     ezpINIHelper::restoreINISettings();
     parent::tearDown();
 }
 public function tearDown()
 {
     date_default_timezone_set($this->defaultTimezone);
     parent::tearDown();
 }