Skip to content

Commit 980ab5b

Browse files
committed
E2E test about env variables in config parameters
1 parent 91a0002 commit 980ab5b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ jobs:
134134
mv src/Foo.php.orig src/Foo.php
135135
echo -n > phpstan-baseline.neon
136136
../../bin/phpstan -vvv
137+
- script: |
138+
cd e2e/env-parameter
139+
export PHPSTAN_SCOPE_CLASS=MyTestScope
140+
ACTUAL=$(../../bin/phpstan dump-parameters -c phpstan.neon --json -l 9 | jq --raw-output '.scopeClass')
141+
[[ "$ACTUAL" == "MyTestScope" ]];
137142
138143
steps:
139144
- name: "Checkout"

e2e/env-parameter/phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
parameters:
2+
scopeClass: %env.PHPSTAN_SCOPE_CLASS%

0 commit comments

Comments
 (0)