diff --git a/tests/OutputFormatter/BaselineOutputFormatterTest.php b/tests/OutputFormatter/BaselineOutputFormatterTest.php index 09493a609..f46062073 100644 --- a/tests/OutputFormatter/BaselineOutputFormatterTest.php +++ b/tests/OutputFormatter/BaselineOutputFormatterTest.php @@ -98,7 +98,7 @@ public function basicDataProvider(): iterable */ public function testBasic(array $rules, string $expectedOutput): void { - $generatedBaselineFile = __DIR__.'/data/generated-baseline.yml'; + $generatedBaselineFile = tempnam(sys_get_temp_dir(), 'deptrac_'); $output = new BufferedOutput(); $formatter = new BaselineOutputFormatter(); @@ -112,6 +112,7 @@ public function testBasic(array $rules, string $expectedOutput): void $expectedOutput, file_get_contents($generatedBaselineFile) ); + unlink($generatedBaselineFile); } public function testGetOptions(): void diff --git a/tests/OutputFormatter/data/generated-baseline.yml b/tests/OutputFormatter/data/generated-baseline.yml deleted file mode 100644 index 1c28cb2e3..000000000 --- a/tests/OutputFormatter/data/generated-baseline.yml +++ /dev/null @@ -1,3 +0,0 @@ -skip_violations: - ClassA: - ClassB: ClassB