+ Add unit test case for git->printLog.

This commit is contained in:
caoyanyi
2023-12-22 16:15:45 +08:00
parent bad9d70910
commit 39e1612904
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env php
<?php
/**
title=gitModel->printLog();
timeout=0
cid=1
- 输出日志信息 @abc
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
su('admin');
global $tester;
$git = $tester->loadModel('git');
ob_start();
$git->printLog('Log: abc');
$result = trim(ob_get_clean());
r(substr($result, -3)) && p() && e('abc'); // 输出日志信息