add(new module_console_schedulerState('system:schedulerState')); $command = $application->find('system:schedulerState'); $commandTester = new CommandTester($command); $commandTester->execute(array('command' => $command->getName())); $task_manager = new task_manager(appbox::get_instance()); $state = $task_manager->get_scheduler_state(); $sentence = sprintf('Scheduler is %s', $state['schedstatus']); $this->assertTrue(strpos($commandTester->getDisplay(), $sentence) !== false); } } ?>