File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
src/Infrastructure/InMemory
tests/Infrastructure/InMemory Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ abstract class Repository implements RepositoryInterface
28
28
public function __construct (
29
29
private string $ itemType ,
30
30
private string $ collectionType ,
31
- )
32
- {
31
+ ) {
33
32
Assert::that ($ this ->itemType )->classExists ();
34
33
Assert::that ($ this ->collectionType )->classExists ();
35
34
}
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ public function testRegisterHandlerClassWithExplicitHandleMethod(): void
98
98
// Given
99
99
$ commandBus = new InMemoryCommandBus ();
100
100
$ commandBus ->registerHandler (
101
- new TestCommandHandlerWithExplicitHandleMethod ());
101
+ new TestCommandHandlerWithExplicitHandleMethod ()
102
+ );
102
103
103
104
// When
104
105
$ result = $ commandBus ->dispatch (new TestCommand ());
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ public function testRegisterHandlerClassWithExplicitHandleMethod(): void
98
98
// Given
99
99
$ queryBus = new InMemoryQueryBus ();
100
100
$ queryBus ->registerHandler (
101
- new TestQueryHandlerWithExplicitHandleMethod ());
101
+ new TestQueryHandlerWithExplicitHandleMethod ()
102
+ );
102
103
103
104
// When
104
105
$ result = $ queryBus ->dispatch (new TestQuery ());
@@ -127,7 +128,8 @@ public function testRegisterHandlerClassWithoutExecuteMethod(): void
127
128
{
128
129
$ this ->expectException (\InvalidArgumentException::class);
129
130
(new InMemoryQueryBus ())->registerHandler (
130
- new TestQueryHandlerWithoutExecuteMethod ());
131
+ new TestQueryHandlerWithoutExecuteMethod ()
132
+ );
131
133
}
132
134
133
135
public function testRegisterCallableHandler (): void
You can’t perform that action at this time.
0 commit comments