Example #1
0
 /**
  * Setup.
  *
  * @return void
  */
 protected function setUp()
 {
     $this->saveErrorHandlers();
     $this->setErrorCallback('JCacheStorageTest');
     self::$actualError = array();
     $this->object = new JCacheStorage();
     $this->checkStores();
 }
 /**
  * Setup.
  *
  * @return void
  */
 protected function setUp()
 {
     include_once JPATH_PLATFORM . '/joomla/cache/cache.php';
     include_once JPATH_PLATFORM . '/joomla/cache/storage.php';
     $this->saveErrorHandlers();
     $this->setErrorCallback('JCacheStorageTest');
     self::$actualError = array();
     $this->object = new JCacheStorage();
     $this->checkStores();
 }
Example #3
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->saveErrorHandlers();
     $this->setErrorCallback('JCacheStorageTest');
     self::$actualError = array();
     $this->object = new JCacheStorage();
     $this->checkStores();
     $this->saveFactoryState();
     JFactory::$application = $this->getMockCmsApp();
 }
 protected function setUp()
 {
     include_once JPATH_PLATFORM . '/joomla/cache/cache.php';
     include_once JPATH_PLATFORM . '/joomla/cache/storage.php';
     $this->saveErrorHandlers();
     $this->setErrorCallback('JCacheStorageTest');
     JCacheStorageTest::$actualError = array();
     $this->object = new JCacheStorage();
     $this->apcAvailable = extension_loaded('apc');
     $this->eacceleratorAvailable = extension_loaded('eaccelerator') && function_exists('eaccelerator_get');
     $this->memcacheAvailable = (extension_loaded('memcache') && class_exists('Memcache')) != true;
     $this->xcacheAvailable = extension_loaded('xcache');
 }
Example #5
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->saveErrorHandlers();
     $this->setErrorCallback('JCacheStorageTest');
     self::$actualError = array();
     $this->object = new JCacheStorage();
     $this->checkStores();
     $this->saveFactoryState();
     JFactory::$application = $this->getMockCmsApp();
     // Mock the returns on JApplicationCms::get() to use the default values
     JFactory::$application->expects($this->any())->method('get')->willReturnArgument(1);
 }
Example #6
0
 protected function setUp()
 {
     include_once JPATH_BASE . '/libraries/joomla/cache/cache.php';
     include_once JPATH_BASE . '/libraries/joomla/cache/storage.php';
     $this->saveErrorHandlers();
     $this->setErrorCallback('JCacheStorageTest');
     JCacheStorageTest::$actualError = array();
     $this->object = new JCacheStorage();
 }