File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 33
44/tools export-ignore
55/tests /benchmarks export-ignore
6+ /tests /data export-ignore
67.gitattributes export-ignore
78.gitignore export-ignore
89.editorconfig export-ignore
Original file line number Diff line number Diff line change 1515use PhpMyAdmin \SqlParser \Translator ;
1616use PHPUnit \Framework \TestCase as BaseTestCase ;
1717
18+ use function file_exists ;
1819use function file_get_contents ;
1920use function str_contains ;
2021use function strpos ;
@@ -93,6 +94,10 @@ public function getErrorsAsArray($obj): array
9394 */
9495 public function getData (string $ name ): array
9596 {
97+ if (! file_exists ('tests/data/ ' . $ name . '.out ' )) {
98+ self ::markTestSkipped ('Test data not available. ' );
99+ }
100+
96101 $ serializedData = file_get_contents ('tests/data/ ' . $ name . '.out ' );
97102 $ this ->assertIsString ($ serializedData );
98103
You can’t perform that action at this time.
0 commit comments