提交 20e73868 编写于 作者: Y yuenblue

aaa

上级 7a83bbcf
{
"recommendations": [
"xdebug.php-debug"
]
}
\ No newline at end of file
......@@ -14,7 +14,10 @@
// "XDEBUG_CONFIG": "idekey=vcs", // "key" = "value
"XDEBUG_CONFIG": "idekey=VSCODE"
},
"phpunit.command": ""
"phpunit.command": "",
"editor.quickSuggestions": {
"comments": "on"
}
// "phpunit.envVars": {
// "XDEBUG_CONFIG":{
// "idekey":"VSCODE",
......
## cli
php think run
composer create-project topthink/think=~6.0 demotp6
......@@ -26,7 +27,12 @@ php -dxdebug.mode=debug -dxdebug.start_with_request=yes -dxdebug.client_host=lo
1.将"vendor/thinkcmf/cmf-install"文件夹删除;
2.最好执行"composer remove thinkcmf/cmf-install"删除!
另请对data/config/database.php文件做好备份,以防丢失!
## vscode config
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
}
## Class Model
* @method static $this scope(string|array $scope) static 查询范围
......
......@@ -5,4 +5,12 @@ namespace app;
class Request extends \think\Request
{
/**
* [Description for $aa]
*
* @var int
*/
public $aa=0;
}
<?php
declare (strict_types = 1);
namespace app\model;
use think\Model;
/**
* @mixin \think\Model
*/
class Article extends Model
{
//
}
<?php
declare (strict_types = 1);
namespace app\model;
use think\Model;
/**
* @mixin \think\Model
*/
class Category extends Model
{
//
}
<?php
declare (strict_types = 1);
namespace app\model;
use think\Model;
/**
* @mixin \think\Model
*/
class Tag extends Model
{
//
}
<?php
declare (strict_types = 1);
namespace app\model;
use think\Model;
enum UserState:int{
......@@ -13,6 +14,10 @@ enum UserState:int{
};
}
}
/**
* @property int aaa
* @property
*/
final class User extends Model
{
......
......@@ -8,6 +8,7 @@ use function PHPUnit\Framework\assertTrue;
use app\controller\Demo;
class DemoTest extends TestCase
{
public function testAaa(){
// $dd=new Demo();
// $dd->Say();
......@@ -21,5 +22,6 @@ class DemoTest extends TestCase
public function testLog(){
echo "aaaa";
echo "bbbb";
}
}
<?php
use app\model\User;
use PHPUnit\Framework\TestCase;
use think\App;
use function PHPUnit\Framework\assertTrue;
class ModelTest extends TestCase{
public static function setUpBeforeClass(): void
{
$http = (new App())->setEnvName('example')->http;
$response = $http->run();
}
function tearDown(): void
{
assertTrue(true);
}
function testEcho() {
$user = new User();
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册