#!/usr/bin/env php app->getLogRoot(); $dateStr = date('Ymd'); $cliFile = $logRoot . 'cron_cli.' . $dateStr . '.log.php'; $webFile = $logRoot . 'cron.' . $dateStr . '.log.php'; if(is_file($cliFile)) unlink($cliFile); if(is_file($webFile)) unlink($webFile); r($cron->logCronTest('test_log_content')) && p() && e('0'); r(file_exists($cliFile)) && p() && e('1'); r(strpos(file_get_contents($cliFile), 'test_log_content') !== false) && p() && e('1'); r(strpos(file_get_contents($cliFile), 'logCronTest("multiline\nlog\ncontent")) && p() && e('0');