123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace EasySwoole\ORM\Tests;
- use PHPUnit\Framework\TestCase;
- use Swoole\Coroutine\MySQL;
- use EasySwoole\ORM\Tests\models\TestUserListModel;
- use EasySwoole\ORM\Tests\models\TestUserModel;
- use EasySwoole\ORM\Tests\models\TestTimeStampModel;
- use EasySwoole\ORM\Tests\models\TestFunctionFieldNameModel;
- use EasySwoole\ORM\Tests\models\TestRelationModel;
- use EasySwoole\ORM\Tests\models\TestUserEventModel;
- use EasySwoole\ORM\Tests\models\TestUserListGetterModel;
- class SwooleTest extends TestCase
- {
-
- protected $client;
- protected function setUp(): void
- {
- parent::setUp();
- $swoole_mysql = new MySQL();
- $swoole_mysql->connect(MYSQL_CONFIG);
- $this->client = $swoole_mysql;
- }
- public function testInsert()
- {
- $false = $this->client->query("insert into user_test_list (ttttt) values (1)");
- $this->assertFalse($false);
- }
- }
|