Browse Source

DX: StdinTest - do not assume name of folder, into which project was cloned

Dariusz Ruminski 6 years ago
parent
commit
6b12106dce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/Smoke/StdinTest.php

+ 1 - 1
tests/Smoke/StdinTest.php

@@ -45,7 +45,7 @@ final class StdinTest extends TestCase
                     $fileResult->getError()
                 ),
                 'output' => str_ireplace(
-                    str_replace('/', DIRECTORY_SEPARATOR, 'PHP-CS-Fixer/tests/Fixtures/Integration/set/@PSR2.test-in.php'),
+                    str_replace('/', DIRECTORY_SEPARATOR, basename(realpath($cwd)).'/'.$inputFile),
                     'php://stdin',
                     $this->unifyFooter($fileResult->getOutput())
                 ),