| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | final class GH6884Test extends OrmFunctionalTestCase |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 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 | } |
||
| 36 | |||
| 37 | public function testIssue() : void |
||
| 50 | } |
||
| 51 | } |
||
| 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.