コード例 #1
0
 /**
  * @test
  * @expectedException \ClearcodeHQ\CommandBusLauncher\InvalidCommandArgument
  */
 public function it_does_not_returns_command_when_invalid_arguments_are_given()
 {
     $argumentProcessor = new ArgumentsProcessor([new UuidConverter()]);
     $commandReflection = CommandReflection::fromClass(DummyCommandWithUuid::class);
     $commandParameters = ['lorem ipsum', 2];
     $commandReflection->createCommand($commandParameters, $argumentProcessor);
 }
コード例 #2
0
 /**
  * @test
  */
 public function it_returns_command_reflection()
 {
     $this->commandCollector->getCommandByName('DummyCommand')->willReturn(CommandReflection::fromClass(DummyCommand::class));
     $commandReflection = $this->sut->getCommandReflection('DummyCommand');
     $this->assertInstanceOf(CommandReflection::class, $commandReflection);
 }