Skip to content

Commit ab18bde

Browse files
committed
Improve testInitSuccess
1 parent 8c16983 commit ab18bde

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Functional/ScriptTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,16 @@ public function testNoCoberturaFileError(): void
209209

210210
public function testInitSuccess(): void
211211
{
212+
$tmpConfigFile = (string) getcwd() . '/phpunit-cobertura-formatter.yml.dist';
213+
212214
$process = $this->runProcess([
213215
'--init',
214216
]);
217+
218+
self::assertFileExists((string) realpath($tmpConfigFile));
215219

216220
unlink(
217-
(string) realpath((string) getcwd() . '/phpunit-cobertura-formatter.yml.dist')
221+
(string) realpath($tmpConfigFile)
218222
);
219223

220224
self::assertStringContainsString(

0 commit comments

Comments
 (0)