Пример #1
0
 public function setUp()
 {
     parent::setUp();
     $application = new Console();
     $application->setAutoExit(false);
     $this->applicationTester = new ApplicationTester($application);
 }
 public function setUp()
 {
     parent::setUp();
     $this->redis = $this->createRedisBackend();
     if (!$this->hasDependencies()) {
         $this->redis->delete($this->emptyListKey);
         $this->redis->delete($this->listKey);
         $this->redis->delete($this->key);
         $this->redis->appendValuesToList($this->listKey, array(10, 299, '34'));
     }
 }
 public function setUp()
 {
     parent::setUp();
     if (!IntegrationTestCase::isRedisAvailable()) {
         $this->markTestSkipped('Redis extension is not installed, skipping test');
     }
     if (self::isTravisCI() && self::isPhpVersion53()) {
         $this->markTestSkipped('Redis seems to be not enabled in nginx on Travis + PHP 5.3.3');
     }
     self::$fixture->performSetup();
     $idSite = 1;
     $dateTime = '2014-01-01 00:00:01';
     if (!Fixture::siteCreated($idSite)) {
         Fixture::createWebsite($dateTime);
     }
     $queuedTracking = new QueuedTracking();
     $this->tracker = Fixture::getTracker($idSite, $dateTime, $defaultInit = true);
     $this->enableQueue();
 }
 public function tearDown()
 {
     $this->clearRedisDb();
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     $this->systemCheck = new SystemCheck();
 }
 public function tearDown()
 {
     $this->handler->rollBack($this->tracker);
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     $this->plugin = new QueuedTracking();
     Factory::getSettings()->queueEnabled->setValue(true);
 }