| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class QueryBusTest extends TestCase |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var QueryBus|null |
||
| 26 | */ |
||
| 27 | private $queryBus; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @throws \Exception |
||
| 31 | */ |
||
| 32 | protected function setUp(): void |
||
| 33 | { |
||
| 34 | parent::setUp(); |
||
| 35 | $this->queryBus = $this->container->get('App\Infrastructure\Common\QueryHandler\QueryBus'); |
||
|
|
|||
| 36 | $this->queryBus->addQueryHandler(new TestHandler()); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function testHandle() |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
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.