Skip to content

Commit

Permalink
Show path when suggesting example
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelloDuarte committed Sep 24, 2024
1 parent 1a596bd commit dfb900c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ vendor/bin/phpspec next
**Output:**

```
Suggested Spec:
Suggested example for: spec/Acme/MarkdownSpec.php:

function it_registers_the_next_command(ServiceContainer $container)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/NextCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private function setupContainer(): void
private function showSuggestion(Suggestion $suggestion, OutputInterface $output): void
{
$suggestionPresenter = new SuggestionPresenter($output, $this->renderer);
$output->writeln('<info>Suggested Spec:</info>');
$output->writeln('<info>Suggested example for:</info> ' . $suggestion->getPath());
$suggestionPresenter->present($suggestion);
}
}

0 comments on commit dfb900c

Please sign in to comment.