Skip to content

Commit a4c063e

Browse files
authored
message-processor (#2)
1 parent b149ec8 commit a4c063e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/AbstractMessageProcessorTest.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testProcessFailByNoProcessingMethod(): void
8686
$this->processor->process($this->message);
8787
}
8888

89-
public function testProcessFailByTooManyMathods(): void
89+
public function testProcessFailByTooManyMethods(): void
9090
{
9191
$methodMap = $this->createMock(MethodMapInterface::class);
9292
$methods = ['method1', 'method2'];
@@ -112,6 +112,12 @@ public function testSetCache(): void
112112
$this->processor->process($this->message);
113113
}
114114

115+
public function testNoCacheAndNoMethodMapProcessFail(): void
116+
{
117+
$this->expectException(LogicException::class);
118+
$this->processor->process($this->message);
119+
}
120+
115121
public function testSetMethodMap(): void
116122
{
117123
$this->processor->setMethodMap(

0 commit comments

Comments
 (0)