File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ class MakerTestCase extends TestCase
2828 /** @var Filesystem */
2929 private static $ fs ;
3030
31+ private $ isDebug = false ;
32+
3133 protected function executeMakerCommand (MakerTestDetails $ testDetails )
3234 {
3335 self ::$ currentRootDir = __DIR__ .'/../../tests/tmp/current_project ' ;
@@ -55,7 +57,8 @@ protected function executeMakerCommand(MakerTestDetails $testDetails)
5557 }
5658
5759 // START DEBUGGING
58- if (strpos ($ testDetails ->getFixtureFilesPath (), 'MakeEntityRelationVendorTarget ' ) !== false ) {
60+ $ this ->isDebug = strpos ($ testDetails ->getFixtureFilesPath (), 'MakeEntityRelationVendorTarget ' ) !== false ;
61+ if ($ this ->isDebug ) {
5962 $ directory = self ::$ currentRootDir ;
6063 echo (file_get_contents ($ directory . '/composer.json ' ));
6164 echo (file_get_contents ($ directory . '/vendor/composer/autoload_psr4.php ' ));
@@ -258,10 +261,16 @@ private function prepareProjectDirectory(MakerTestDetails $makerTestDetails)
258261 $ finder ->in ($ makerTestDetails ->getFixtureFilesPath ())->files ();
259262
260263 foreach ($ finder as $ file ) {
264+ if ($ this ->isDebug ) {
265+ var_dump ($ file ->getPath ());
266+ }
261267 if ($ file ->getPath () === $ makerTestDetails ->getFixtureFilesPath ()) {
262268 continue ;
263269 }
264270
271+ if ($ this ->isDebug ) {
272+ var_dump ('Copying ' , $ file ->getPathname (), self ::$ currentRootDir . '/ ' . $ file ->getRelativePathname ());
273+ }
265274 self ::$ fs ->copy ($ file ->getPathname (), self ::$ currentRootDir .'/ ' .$ file ->getRelativePathname (), true );
266275 }
267276 }
You can’t perform that action at this time.
0 commit comments