提交 0bbdb83e 编写于 作者: Y yuenblue

aaa

上级 5ef2a811
{"version":1,"defects":[],"times":{"DemoTest::testAaa":4.574}}
\ No newline at end of file
......@@ -3,7 +3,7 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
......
{
"phpunit.phpunit": "demophpunit/vendor/bin/phpunit",
"phpunit.php": "php",
"phpunit.args": [
"--colors",
"always"
// "--debug"
// "-d",
// "xdebug.mode=debug"
],
"phpunit.envVars": {
// A list of environment variables for phpunit command's execution
// "XDEBUG_CONFIG": "remove_enable=1", // "key" = "value
// "XDEBUG_CONFIG": "idekey=vcs", // "key" = "value
"XDEBUG_CONFIG": "idekey=VSCODE"
},
"phpunit.command": ""
// "phpunit.envVars": {
// "XDEBUG_CONFIG":{
// "idekey":"VSCODE",
// }
// }
}
\ No newline at end of file
......@@ -6,8 +6,13 @@ composer create-project thinkcmf/thinkcmf=~6.0 demothinkcmf6
composer create-project thinkcmf/thinkcmf=~8.0 demothinkcmf8
ln -s /usr/local/etc/php/8.2/ php82
1192129692@qq.com
./vendor/bin/phpunit -dxdebug.mode=debug -dxdebug.start_with_request=yes -dxdebug.client_host=localhost -dxdebug.client_port=9003 tests/DemoTest.php
php -dxdebug.mode=debug -dxdebug.start_with_request=yes -dxdebug.client_host=localhost -dxdebug.client_port=9003 index.php
php ../phpunit-10.5.13.phar tests/DemoTest.php
php ../phpunit-10.5.13.phar --help
php -dxdebug.mode=debug -dxdebug.start_with_request=yes -dxdebug.client_host=localhost -dxdebug.client_port=9003 ../phpunit-10.5.13.phar tests/DemoTest.php
1192129692@qq.com
恭喜您,安装完成!
......
<?php
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\assertNull;
class DemoTest extends TestCase
{
public function testAaa(){
$this->assertEmpty("2","aaaaaa");
print("aaaaaa");
print("??????");
print("cccccc");
// phpinfo();
$this->assertEmpty("","???");
}
}
<?php
print("");
phpinfo();
\ No newline at end of file
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册