25 lines
567 B
PHP
25 lines
567 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
|
|
title=测试 upgradeModel->getLogFile();
|
|
cid=19524
|
|
|
|
- 测试获取的升级日志文件地址是否正确 @1
|
|
|
|
**/
|
|
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
|
|
|
global $app;
|
|
$path = $app->getTmpRoot() . 'log/';
|
|
$filename = 'upgrade.%s.log.php';
|
|
|
|
$filePath = sprintf($path . $filename, date('Ymd'));
|
|
|
|
$upgrade = new upgradeModelTest();
|
|
r($upgrade->getLogFile() === $filePath) && p('') && e('1'); //获取的升级日志文件地址是否正确
|