|
@@ 34-47 (lines=14) @@
|
| 31 |
|
); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public function testInvoke_WithNonRoutedMessage_ShouldThrowRuntimeException() |
| 35 |
|
{ |
| 36 |
|
$this->givenContainerWithFixtureFiles( |
| 37 |
|
['commonServices', 'secondMessageRoute'] |
| 38 |
|
); |
| 39 |
|
|
| 40 |
|
$asynchronousMessageProducer = $this->givenAsynchronousProducerFromContainer( |
| 41 |
|
'prooph_asynchronous_router.secondProducer' |
| 42 |
|
); |
| 43 |
|
|
| 44 |
|
$this->expectException(RuntimeException::class); |
| 45 |
|
|
| 46 |
|
$this->whenInvokeMessageProcuderWithFirstMessage($asynchronousMessageProducer); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
public function testInvoke_WithDefferedParam_ShouldThrowRuntimeException() |
| 50 |
|
{ |
|
@@ 49-62 (lines=14) @@
|
| 46 |
|
$this->whenInvokeMessageProcuderWithFirstMessage($asynchronousMessageProducer); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
public function testInvoke_WithDefferedParam_ShouldThrowRuntimeException() |
| 50 |
|
{ |
| 51 |
|
$this->givenContainerWithFixtureFiles( |
| 52 |
|
['commonServices', 'firstMessageRoute'] |
| 53 |
|
); |
| 54 |
|
|
| 55 |
|
$asynchronousMessageProducer = $this->givenAsynchronousProducerFromContainer( |
| 56 |
|
'prooph_asynchronous_router.firstProducer' |
| 57 |
|
); |
| 58 |
|
|
| 59 |
|
$this->expectException(RuntimeException::class); |
| 60 |
|
|
| 61 |
|
$this->whenInvokeMessageProcuderWithDeferredParam($asynchronousMessageProducer); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
protected function givenAsynchronousProducerFromContainer(string $serviceId): AsynchronousMessageProducer |
| 65 |
|
{ |