Skip to content

Commit e2c9b4a

Browse files
committed
Fix tests
1 parent 9718c14 commit e2c9b4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,25 +216,25 @@ jobs:
216216
../bashunit -a contains 'Method class@anonymous/TestClassUsingTrait.php:20::doBar() should return stdClass but returns Exception.' "$OUTPUT"
217217
- script: |
218218
cd e2e/bad-exclude-paths
219-
OUTPUT=$(../../bin/phpstan analyse -c ignore.neon || true)
219+
OUTPUT=$(../../bin/phpstan analyse -c ignore.neon 2>&1 || true)
220220
echo "$OUTPUT"
221221
../bashunit -a contains 'Invalid entry in ignoreErrors' "$OUTPUT"
222222
../bashunit -a contains 'tests is neither a directory, nor a file path, nor a fnmatch pattern.' "$OUTPUT"
223223
- script: |
224224
cd e2e/bad-exclude-paths
225-
OUTPUT=$(../../bin/phpstan analyse -c phpneon.php || true)
225+
OUTPUT=$(../../bin/phpstan analyse -c phpneon.php 2>&1 || true)
226226
echo "$OUTPUT"
227227
../bashunit -a contains 'Invalid entry in ignoreErrors' "$OUTPUT"
228228
../bashunit -a contains 'src/test.php is neither a directory, nor a file path, nor a fnmatch pattern.' "$OUTPUT"
229229
- script: |
230230
cd e2e/bad-exclude-paths
231-
OUTPUT=$(../../bin/phpstan analyse -c excludePaths.neon || true)
231+
OUTPUT=$(../../bin/phpstan analyse -c excludePaths.neon 2>&1 || true)
232232
echo "$OUTPUT"
233233
../bashunit -a contains 'Invalid entry in excludePaths' "$OUTPUT"
234234
../bashunit -a contains 'tests is neither a directory, nor a file path, nor a fnmatch pattern.' "$OUTPUT"
235235
- script: |
236236
cd e2e/bad-exclude-paths
237-
OUTPUT=$(../../bin/phpstan analyse -c phpneon2.php || true)
237+
OUTPUT=$(../../bin/phpstan analyse -c phpneon2.php 2>&1 || true)
238238
echo "$OUTPUT"
239239
../bashunit -a contains 'Invalid entry in excludePaths' "$OUTPUT"
240240
../bashunit -a contains 'src/test.php is neither a directory, nor a file path, nor a fnmatch pattern.' "$OUTPUT"

0 commit comments

Comments
 (0)