Skip to content
Permalink
Browse files

Run in directory

  • Loading branch information...
muglug committed Jun 26, 2019
1 parent 0da801f commit 41837eb62cb7cb6680d536870712d78794773a73
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/EndToEnd/PsalmEndToEndTest.php
@@ -50,8 +50,8 @@ public static function tearDownAfterClass(): void
public function setUp(): void
{
@unlink('psalm.xml');
copy(__DIR__ . '/../fixtures/DummyProjectWithErrors/src/FileWithErrors.php', 'src/FileWithErrors.php');
@unlink(self::$tmpDir . '/psalm.xml');
copy(__DIR__ . '/../fixtures/DummyProjectWithErrors/src/FileWithErrors.php', self::$tmpDir . '/src/FileWithErrors.php');
parent::setUp();
}
@@ -68,7 +68,7 @@ public function testVersion(): void
public function testInit(): void
{
$this->assertStringStartsWith('Config file created', $this->runPsalm(['--init'])['STDOUT']);
$this->assertFileExists('psalm.xml');
$this->assertFileExists(self::$tmpDir . '/psalm.xml');
}
public function testAlter(): void
@@ -86,7 +86,7 @@ public function testAlter(): void
public function testPsalter(): void
{
$this->runPsalm(['--init']);
(new Process([$this->psalter, '--alter', '--issues=InvalidReturnType']))->mustRun();
(new Process([$this->psalter, '--alter', '--issues=InvalidReturnType'], self::$tmpDir))->mustRun();
$this->assertSame(0, $this->runPsalm([])['CODE']);
}

0 comments on commit 41837eb

Please sign in to comment.
You can’t perform that action at this time.