С версии: 5.0 (10.09.2014)
Автор: Vitaliy Demidov (vitaliy@scalr.com)
Наследование: extends Scalr\System\Zmq\Cron\AbstractTask
Пример #1
0
 /**
  * cloud_pricing service test
  *
  * @test
  */
 public function testCloudPricing()
 {
     $task = new CloudPricing();
     $config = $task->config();
     $databag = 'scalr.crontab.services.cloud_pricing';
     $expected = $this->config->defined($databag) ? (object) $this->config->get($databag) : null;
     if (isset($config->cronExpression)) {
         //This option is added runtime
         $this->assertInstanceOf('Scalr\\Util\\Cron\\CronExpression', $config->cronExpression);
         unset($config->cronExpression);
     }
     $this->assertEquals($expected, $config);
 }