/**
  * Get a scheduler class
  *
  * @return $this|Schedulable
  */
 public function getNewSchedulerClass()
 {
     /** @var \Indatus\Dispatcher\Scheduling\Schedulable $scheduler */
     $scheduler = $this->configResolver->resolveSchedulerClass();
     return $scheduler;
 }
 public function testLoadingSchedulerCustomDriver()
 {
     Config::shouldReceive('get')->andReturn('cron');
     $resolver = new ConfigResolver();
     $this->assertInstanceOf('Indatus\\Dispatcher\\Services\\ScheduleService', $resolver->resolveServiceClass());
 }
 public function testDriverCasing()
 {
     $this->assertEquals('DateTime', $this->configResolver->getDriver());
 }