File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 99abstract class BaseDraftTestCase extends BaseTestCase
1010{
1111 /** @var string */
12- protected $ relativeTestsRoot = '/../../vendor/json-schema/json-schema-test-suite/tests ' ;
12+ protected const RELATIVE_TESTS_ROOT = '/../../vendor/json-schema/json-schema-test-suite/tests ' ;
1313
1414 /**
1515 * @return array<string, array{string, string}>
Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ public function refPreventsASiblingIdFromChangingTheBaseUriProvider(): \Generato
7676 protected function getFilePaths (): array
7777 {
7878 return [
79- realpath (__DIR__ . $ this -> relativeTestsRoot . '/draft3 ' ),
80- realpath (__DIR__ . $ this -> relativeTestsRoot . '/draft3/optional ' )
79+ realpath (__DIR__ . self :: RELATIVE_TESTS_ROOT . '/draft3 ' ),
80+ realpath (__DIR__ . self :: RELATIVE_TESTS_ROOT . '/draft3/optional ' )
8181 ];
8282 }
8383
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ class Draft4Test extends BaseDraftTestCase
2323 protected function getFilePaths (): array
2424 {
2525 return [
26- realpath (__DIR__ . $ this -> relativeTestsRoot . '/draft4 ' ),
27- realpath (__DIR__ . $ this -> relativeTestsRoot . '/draft4/optional ' )
26+ realpath (__DIR__ . self :: RELATIVE_TESTS_ROOT . '/draft4 ' ),
27+ realpath (__DIR__ . self :: RELATIVE_TESTS_ROOT . '/draft4/optional ' )
2828 ];
2929 }
3030
You can’t perform that action at this time.
0 commit comments