@@ -194,26 +194,26 @@ jobs:
194
194
patch -b data/TraitOne.php < TraitOne.patch
195
195
OUTPUT=$(../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/ || true)
196
196
echo "$OUTPUT"
197
- ../assert .sh equals `echo "$OUTPUT" | wc -l` 1
198
- ../assert .sh contains 'Method TraitsCachingIssue\TestClassUsingTrait::doBar() should return stdClass but returns Exception.' "$OUTPUT"
197
+ ../bashunit .sh -a line_count 1 "$OUTPUT"
198
+ ../bashunit .sh -a contains 'Method TraitsCachingIssue\TestClassUsingTrait::doBar() should return stdClass but returns Exception.' "$OUTPUT"
199
199
- script : |
200
200
cd e2e/trait-caching
201
201
../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/
202
202
patch -b data/TraitTwo.php < TraitTwo.patch
203
203
OUTPUT=$(../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/ || true)
204
204
echo "$OUTPUT"
205
- ../assert .sh equals `echo "$OUTPUT" | wc -l` 1
206
- ../assert .sh contains 'Method class@anonymous/TestClassUsingTrait.php:20::doBar() should return stdClass but returns Exception.' "$OUTPUT"
205
+ ../bashunit .sh -a line_count 1 "$OUTPUT"
206
+ ../bashunit .sh -a contains 'Method class@anonymous/TestClassUsingTrait.php:20::doBar() should return stdClass but returns Exception.' "$OUTPUT"
207
207
- script : |
208
208
cd e2e/trait-caching
209
209
../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/
210
210
patch -b data/TraitOne.php < TraitOne.patch
211
211
patch -b data/TraitTwo.php < TraitTwo.patch
212
212
OUTPUT=$(../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/ || true)
213
213
echo "$OUTPUT"
214
- ../assert .sh equals `echo "$OUTPUT" | wc -l` 2
215
- ../assert .sh contains 'Method TraitsCachingIssue\TestClassUsingTrait::doBar() should return stdClass but returns Exception.' "$OUTPUT"
216
- ../assert .sh contains 'Method class@anonymous/TestClassUsingTrait.php:20::doBar() should return stdClass but returns Exception.' "$OUTPUT"
214
+ ../bashunit .sh -a line_count 2 "$OUTPUT"
215
+ ../bashunit .sh -a contains 'Method TraitsCachingIssue\TestClassUsingTrait::doBar() should return stdClass but returns Exception.' "$OUTPUT"
216
+ ../bashunit .sh -a contains 'Method class@anonymous/TestClassUsingTrait.php:20::doBar() should return stdClass but returns Exception.' "$OUTPUT"
217
217
218
218
steps :
219
219
- name : " Checkout"
@@ -234,7 +234,7 @@ jobs:
234
234
run : " patch src/Analyser/Error.php < e2e/PHPStanErrorPatch.patch"
235
235
236
236
- name : " Install bashunit"
237
- run : " curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.12.0 "
237
+ run : " curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ beta "
238
238
239
239
- name : " Test"
240
240
run : " ${{ matrix.script }}"
0 commit comments