Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加hostport #534

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
</testsuites>
<php>
<env name="TESTS_DB_MYSQL_HOSTNAME" value="127.0.0.1"/>
<env name="TESTS_DB_MYSQL_HOSTPORT" value="3306"/>
<env name="TESTS_DB_MYSQL_DATABASE" value="testing"/>
<env name="TESTS_DB_MYSQL_USERNAME" value="root"/>
<env name="TESTS_DB_MYSQL_PASSWORD" value="password"/>
Expand Down
4 changes: 4 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
'type' => 'mysql',
// 主机地址
'hostname' => getenv('TESTS_DB_MYSQL_HOSTNAME'),
// 主机端口
'hostport' => getenv('TESTS_DB_MYSQL_HOSTPORT'),
// 数据库名
'database' => getenv('TESTS_DB_MYSQL_DATABASE'),
// 用户名
Expand All @@ -38,6 +40,8 @@
'type' => 'mysql',
// 主机地址
'hostname' => getenv('TESTS_DB_MYSQL_HOSTNAME'),
// 主机端口
'hostport' => getenv('TESTS_DB_MYSQL_HOSTPORT'),
// 数据库名
'database' => getenv('TESTS_DB_MYSQL_DATABASE'),
// 用户名
Expand Down
Loading