提交 f4b5413b 编写于 作者: Y yuenblue

aaa

上级 cbe61e22
<?php <?php
namespace common;
// 应用公共文件 // 应用公共文件
class Bbb{
function say() {
return "hello common";
}
}
function Aaa() {
return "hello common";
}
\ No newline at end of file
...@@ -7,6 +7,7 @@ use think\facade\Cache; ...@@ -7,6 +7,7 @@ use think\facade\Cache;
use think\facade\Config; use think\facade\Config;
use think\facade\Db; use think\facade\Db;
use think\facade\Event; use think\facade\Event;
use common\Bbb;
use function PHPUnit\Framework\assertTrue; use function PHPUnit\Framework\assertTrue;
class DemoTp6 extends TestCase{ class DemoTp6 extends TestCase{
...@@ -20,6 +21,12 @@ class DemoTp6 extends TestCase{ ...@@ -20,6 +21,12 @@ class DemoTp6 extends TestCase{
{ {
assertTrue(true); assertTrue(true);
} }
function testCommon() {
$bb = new Bbb();
print $bb->say();
print \common\Aaa();
}
function testAa() { function testAa() {
// assertTrue(function_exists('env')) ; // assertTrue(function_exists('env')) ;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册