function testGetJobsFromIni() { $cron_manager = new CronManager(); registerTestingIni( 'cron.ini', ' [cron-job1] handle = test1.php interval = 10 [cron-job2] handle = test2.php interval = 20 [not_valid_cron-job] bla-bla = bla-bla ' ); $this->assertEqual($cron_manager->getJobs(), array( 'cron-job1' => array('handle' => 'test1.php', 'interval' => 10), 'cron-job2' => array('handle' => 'test2.php', 'interval' => 20) ) ); clearTestingIni(); }