Esempio n. 1
0
 public function testExpireAdd()
 {
     if (getenv('TRAVIS') == 'true') {
         $this->markTestSkipped('Can not reliably test memcached expiry on travis-ci.');
     }
     parent::testExpireAdd();
 }
Esempio n. 2
0
 protected function setUp()
 {
     if (!extension_loaded('pdo') || !extension_loaded('pdo_mysql')) {
         $this->markTestSkipped('pdo and pdo_mysql extensions are required.');
     }
     parent::setUp();
     $this->getConnection()->createCommand("\n            CREATE TABLE IF NOT EXISTS cache (\n                id char(128) NOT NULL,\n                expire int(11) DEFAULT NULL,\n                data LONGBLOB,\n                PRIMARY KEY (id),\n                KEY expire (expire)\n            );\n        ")->execute();
 }