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