Skip to content

Commit 2746832

Browse files
committed
Data directory detection refactored.
1 parent 51b3827 commit 2746832

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PatchTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ public function providerInvalidPatch(): array
154154

155155
private function getSpecTests(): array
156156
{
157-
$testsFile = dirname(realpath(PHPUNIT_COMPOSER_INSTALL)) . "/../tests/data/spec_tests.json";
157+
$testsFile = realpath(__DIR__ . "/data/spec_tests.json");
158158
return $this->getTestInfoList($testsFile);
159159
}
160160

161161

162162
private function getTests(): array
163163
{
164-
$testsFile = dirname(realpath(PHPUNIT_COMPOSER_INSTALL)) . "/../tests/data//tests.json";
164+
$testsFile = realpath(__DIR__ . "/data/tests.json");
165165
return $this->getTestInfoList($testsFile);
166166
}
167167

0 commit comments

Comments
 (0)