File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,16 @@ public function testHTTPSuccess(): void
204
204
205
205
echo \implode ("\n" , $ output );
206
206
207
- $ this ->assertEquals ([], \array_diff ($ this ->expectedOutput , $ output ));
207
+ foreach ($ this ->expectedOutput as $ index => $ expected ) {
208
+ if (\str_starts_with ($ expected , '{ ' )) {
209
+ $ this ->assertEquals (
210
+ \json_decode ($ expected , true ),
211
+ \json_decode ($ output [$ index ], true )
212
+ );
213
+ } else {
214
+ $ this ->assertEquals ($ expected , $ output [$ index ]);
215
+ }
216
+ }
208
217
}
209
218
210
219
private function rmdirRecursive ($ dir ): void
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class Swift56Test extends Base
16
16
'cp tests/languages/swift/Tests.swift tests/sdks/swift/Tests/AppwriteTests/Tests.swift ' ,
17
17
];
18
18
protected string $ command =
19
- 'docker run --network="mockapi" --rm -v $(pwd):/app -w /app/tests/sdks/swift swift:5.6 swift test ' ;
19
+ 'docker run --network="mockapi" --rm -v $(pwd):/app -w /app/tests/sdks/swift swift:5.6-focal swift test ' ;
20
20
21
21
protected array $ expectedOutput = [
22
22
...Base::FOO_RESPONSES ,
You can’t perform that action at this time.
0 commit comments