public function setUp()
 {
     parent::setUp();
     if (!class_exists('Doctrine\\Common\\Cache\\VoidCache')) {
         $this->markTestSkipped('The ' . __CLASS__ . ' requires the use of VoidCache available in doctrine/cache since 1.5');
     }
 }
Esempio n. 2
0
 /**
  * {@inheritDoc}
  */
 protected function setUp()
 {
     parent::setUp();
     if (!extension_loaded('memcached')) {
         $this->markTestSkipped('The ' . __CLASS__ . ' requires the use of memcached');
     }
     if (@fsockopen('localhost', 11211) === false) {
         $this->markTestSkipped('The ' . __CLASS__ . ' cannot connect to memcached');
     }
 }