Skip to content

Commit 6a550f5

Browse files
Set APP_ENV to testing when running tests (#108)
Co-authored-by: 李铭昕 <715557344@qq.com>
1 parent 8147f06 commit 6a550f5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

deploy.test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
image: $REGISTRY_URL/$PROJECT_NAME:test
55
environment:
66
- "APP_PROJECT=hyperf"
7-
- "APP_ENV=test"
7+
- "APP_ENV=testing"
88
ports:
99
- "9501:9501"
1010
deploy:

phpunit.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818
<directory suffix=".php">./app</directory>
1919
</whitelist>
2020
</filter>
21+
<php>
22+
<env name="APP_ENV" value="testing" force="true"/>
23+
</php>
2124
</phpunit>

0 commit comments

Comments
 (0)