Beispiel #1
0
 /**
  * Sets up the fixture.
  *
  * This method is called before a test is executed.
  *
  * @return  void
  *
  * @since   1.0
  */
 protected function setUp()
 {
     // Dummy object for testing
     static::$object = $this;
     parent::setUp();
     static::$className = '\\Joomla\\Session\\Storage';
 }
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return  void
  *
  * @since   1.0
  */
 protected function setUp()
 {
     if (!class_exists('Memcached')) {
         $this->markTestSkipped('The Memcached class does not exist.');
         return;
     }
     // Create the caching object
     static::$object = Storage::getInstance('Memcached');
     // Parent contains the rest of the setup
     parent::setUp();
 }