1 | <?php |
||
12 | class SimpleCommandBusTest extends \PHPUnit_Framework_TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @inheritDoc |
||
16 | */ |
||
17 | public function setUp() |
||
26 | |||
27 | /** |
||
28 | * @test |
||
29 | * @group command_bus |
||
30 | */ |
||
31 | public function it_registers_a_handler() |
||
37 | |||
38 | /** |
||
39 | * @test |
||
40 | * @group command_bus |
||
41 | * @expectedException \Tactics\CommandBusBundle\Exception\DuplicateHandlerException |
||
42 | */ |
||
43 | public function it_throws_an_error_on_duplicate_handlers() |
||
48 | |||
49 | /** |
||
50 | * @test |
||
51 | * @group command_bus |
||
52 | */ |
||
53 | public function it_lets_a_handler_handle_a_command() |
||
62 | } |