Example #1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 public function setUp()
 {
     $this->_sTestClass = '\\parallely\\Transport\\SharedMemory';
     $this->_oOptions = new \stdClass();
     $this->_oOptions->path = '/tmp';
     parent::setUp();
 }
Example #2
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 public function setUp()
 {
     $this->_sTestClass = '\\parallely\\Transport\\Memcached';
     $this->_oOptions = new \stdClass();
     $this->_oOptions->host = 'localhost';
     $this->_oOptions->port = 11211;
     parent::setUp();
 }
Example #3
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 public function setUp()
 {
     var_dump(extension_loaded('apc'));
     var_dump(ini_get('apc.enabled'));
     var_dump(ini_get('apc.enable_cli'));
     if (extension_loaded('apc') === true and (bool) ini_get('apc.enabled') === true and (bool) ini_get('apc.enable_cli') === true) {
         $this->_sTestClass = '\\parallely\\Transport\\Apc';
         $this->_oOptions = new \stdClass();
         parent::setUp();
     } else {
         $this->markTestSkipped('Test skipped, as apc is not installed');
     }
 }