Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | protected function setUp() : void |
||
22 | { |
||
23 | parent::setUp(); |
||
24 | |||
25 | $this->schemaTool->createSchema([$this->em->getClassMetadata(GH6884Person::class)]); |
||
26 | |||
27 | $listener = $this->createPartialMock(stdClass::class, ['preUpdate']); |
||
28 | |||
29 | $listener->expects($this->exactly(3))->method('preUpdate'); |
||
30 | |||
31 | $this->em->getEventManager()->addEventListener([Events::preUpdate], $listener); |
||
32 | |||
33 | $this->em->getClassMetadata(GH6884Person::class) |
||
34 | ->addEntityListener(Events::postUpdate, GH6884Person::class, 'onPostUpdate'); |
||
|
|||
35 | } |
||
78 |
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.