phpunit.php 707 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * -- 新建测试用的库
  4. * CREATE DATABASE IF NOT EXISTS demo
  5. * DEFAULT CHARACTER SET utf8mb4
  6. * DEFAULT COLLATE utf8mb4_general_ci;
  7. *
  8. * -- 新建测试用的表
  9. * CREATE TABLE demo.user_test_list (
  10. * name varchar(64) NULL,
  11. * age TINYINT UNSIGNED NULL,
  12. * addTime DATETIME NULL,
  13. * state TINYINT UNSIGNED NULL
  14. * )
  15. * ENGINE=InnoDB
  16. * DEFAULT CHARSET=utf8mb4
  17. * COLLATE=utf8mb4_general_ci;
  18. */
  19. defined("MYSQL_CONFIG") ?: define('MYSQL_CONFIG', [
  20. 'host' => '127.0.0.1',
  21. 'port' => 3306,
  22. 'user' => 'demo',
  23. 'password' => '123456',
  24. 'database' => 'demo',
  25. 'timeout' => 5,
  26. 'charset' => 'utf8mb4',
  27. ]);