Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add attribute to test command #19

Merged
merged 2 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/docs/ export-ignore
/tests/ export-ignore

/.changelog export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php-cs-fixer.dist.php export-ignore
Expand Down
4 changes: 2 additions & 2 deletions tests/App/src/Console/FailingMappingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
namespace CuyZ\ValinorBundle\Tests\App\Console;

use CuyZ\Valinor\Mapper\TreeMapper;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand('test:command-with-failing-mapping')]
final class FailingMappingCommand extends Command
{
protected static $defaultName = 'test:command-with-failing-mapping';

public function __construct(private TreeMapper $mapper)
{
parent::__construct();
Expand Down
Loading