Skip to content

Commit da37780

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 2ebff8c + 562ebf6 commit da37780

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Test/MakerTestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,4 +288,4 @@ private function processReplacements(array $replacements, $rootDir)
288288
file_put_contents($path, str_replace($replacement['find'], $replacement['replace'], $contents));
289289
}
290290
}
291-
}
291+
}

src/Test/MakerTestDetails.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,11 @@ public function getFixtureFilesPath()
119119

120120
public function getUniqueCacheDirectoryName(): string
121121
{
122-
// create a unique directory name for this project
123-
// but one that will be the same each time the tests are run
124-
return (new \ReflectionObject($this->maker))->getShortName().'_'.($this->fixtureFilesPath ? basename($this->fixtureFilesPath) : 'default').'_'.md5(serialize($this->extraDependencies));
122+
// for cache purposes, only the dependencies are important
123+
// shortened to avoid long paths on Windows
124+
$dirName = 'maker_'.substr(md5(serialize($this->getDependencies())), 0, 10);
125+
126+
return $dirName;
125127
}
126128

127129
public function getPreMakeCommands(): array

0 commit comments

Comments
 (0)