提交 5ae61d64 编写于 作者: Y yuenblue

demotp6

上级 de6b97fc
{
"phpunit.phpunit": "demophpunit/vendor/bin/phpunit",
"phpunit.phpunit": "demotp6/vendor/bin/phpunit",
"phpunit.php": "php",
"phpunit.args": [
"--colors",
......
<?php
namespace app\controller;
class Demo{
function Say() {
print("你好,我是Demo");
}
}
\ No newline at end of file
......@@ -27,7 +27,8 @@
},
"require-dev": {
"symfony/var-dumper": "^4.2",
"topthink/think-trace": "^1.0"
"topthink/think-trace": "^1.0",
"phpunit/phpunit": "10.5"
},
"autoload": {
"psr-4": {
......
此差异已折叠。
<?php
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\assertEmpty;
use function PHPUnit\Framework\assertNull;
use app\controller\Demo;
class DemoTest extends TestCase
{
public function testAaa(){
$dd=new Demo();
$dd->Say();
assertEmpty("");
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册