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(); }
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); }
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(); }
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')); } }
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" ); }
/** * 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" ); } }
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(); }
public function __construct() { parent::__construct(); $this->setName("eZSiteaccess"); }
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(); }
public function __construct() { parent::__construct(); $this->setName( "eZSysTest" ); }
public function tearDown() { ezpINIHelper::restoreINISettings(); eZCache::clearByID('active_extensions'); parent::tearDown(); }
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; }
public function tearDown() { ezpINIHelper::restoreINISettings(); parent::tearDown(); }
public function tearDown() { date_default_timezone_set($this->defaultTimezone); parent::tearDown(); }