| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class CommandBusTest extends TestCase |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var CommandBus|null |
||
| 26 | */ |
||
| 27 | private $commandBus; |
||
| 28 | |||
| 29 | protected function setUp(): void |
||
| 30 | { |
||
| 31 | parent::setUp(); |
||
| 32 | $this->commandBus = $this->container->get('App\Infrastructure\Common\CommandHandler\CommandBus'); |
||
|
|
|||
| 33 | $this->commandBus->addCommandHandler(new TestHandler()); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function testHandle() |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.