function testTickRunsVariousTicksWithoutErrors()
 {
     $logger = new MockGameLog();
     $tick = new TickController($logger, new MockDeity());
     $tick->atomic();
     $tick->tiny();
     $tick->minor();
     $tick->major();
     $tick->nightly();
     $this->assertTrue(true);
     // Just has to be reached in terms of a sanity check
 }
Esempio n. 2
0
<?php

require_once substr(__FILE__, 0, strpos(__FILE__, 'cron/')) . 'resources.php';
require_once ROOT . 'cron/cron_bootstrap.php';
use NinjaWars\core\control\TickController;
use NinjaWars\core\data\GameLog;
use NinjaWars\core\data\Deity;
$logger = new GameLog();
$tick = new TickController($logger, new Deity($logger));
$tick->tiny();
Esempio n. 3
0
<?php

require_once substr(__FILE__, 0, strpos(__FILE__, 'cron/')) . 'resources.php';
require_once ROOT . 'cron/cron_bootstrap.php';
use NinjaWars\core\control\TickController;
use NinjaWars\core\data\GameLog;
use NinjaWars\core\data\Deity;
$logger = new GameLog();
$tick = new TickController($logger, new Deity($logger));
$tick->nightly();
Esempio n. 4
0
<?php

require_once substr(__FILE__, 0, strpos(__FILE__, 'cron/')) . 'resources.php';
require_once ROOT . 'cron/cron_bootstrap.php';
use NinjaWars\core\control\TickController;
use NinjaWars\core\data\GameLog;
use NinjaWars\core\data\Deity;
$logger = new GameLog();
$tick = new TickController($logger, new Deity($logger));
$tick->minor();
Esempio n. 5
0
<?php

require_once substr(__FILE__, 0, strpos(__FILE__, 'cron/')) . 'resources.php';
require_once ROOT . 'cron/cron_bootstrap.php';
use NinjaWars\core\control\TickController;
use NinjaWars\core\data\GameLog;
use NinjaWars\core\data\Deity;
$logger = new GameLog();
$tick = new TickController($logger, new Deity($logger));
$tick->major();
Esempio n. 6
0
<?php

require_once substr(__FILE__, 0, strpos(__FILE__, 'cron/')) . 'resources.php';
require_once ROOT . 'cron/cron_bootstrap.php';
use NinjaWars\core\control\TickController;
use NinjaWars\core\data\GameLog;
use NinjaWars\core\data\Deity;
$logger = new GameLog();
$tick = new TickController($logger, new Deity($logger));
$tick->atomic();