Skip to content

Commit 33734a8

Browse files
committed
feat: adds configuration (squash 2)
1 parent a974219 commit 33734a8

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

phpunit.xml.dist

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
colors="true"
66
beStrictAboutTestsThatDoNotTestAnything="true"
@@ -14,4 +14,9 @@
1414
<directory>tests/Integration</directory>
1515
</testsuite>
1616
</testsuites>
17+
<source>
18+
<include>
19+
<directory suffix=".php">src</directory>
20+
</include>
21+
</source>
1722
</phpunit>

src/Commands/InitCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4343
}
4444

4545
if (\file_exists($targetPath)) {
46-
$output->writeln('<comment>README already exists: ' . $targetPath . '</comment>');
46+
$output->writeln('<comment>' . self::DEFAULT_FILENAME . ' already exists: ' . $targetPath . '</comment>');
4747

4848
return Command::FAILURE;
4949
}
5050

5151
$template = $this->defaultReadmeTemplate();
5252

5353
if (@file_put_contents($targetPath, $template) === false) {
54-
$output->writeln('<error>Failed to write README: ' . $targetPath . '</error>');
54+
$output->writeln('<error>Failed to write ' . self::DEFAULT_FILENAME . ': ' . $targetPath . '</error>');
5555

5656
return Command::FAILURE;
5757
}
5858

59-
$output->writeln('<info>README created at: ' . $targetPath . '</info>');
59+
$output->writeln('<info>' . self::DEFAULT_FILENAME . ' created at: ' . $targetPath . '</info>');
6060

6161
return Command::SUCCESS;
6262
}

0 commit comments

Comments
 (0)