0, 'newJob'=>array('Schedule'=>'0 3 * * *', 'Command'=>array('x'), 'Name'=>array('y')))); $check('array Command is refused, not a TypeError', $inserted === null); } catch (\Throwable $e) { $check('array Command is refused, not a TypeError ('.get_class($e).')', false); } $warnings = array(); $run('delete', array('markIds'=>'7')); $check('non-array markIds raises no warning', count($warnings) === 0); foreach (array("CronJob", "CronTab", "Command") as $f) unlink($dir."/includes/".$f.".php"); rmdir($dir."/includes"); chdir("/"); rmdir($dir); exit($fail ? 1 : 0); }