<?php method_exists(object|string $object_or_class, string $method): bool
<?php protected function createCallableMock() { if (method_exists('PHPUnit\Framework\MockObject\MockBuilder', 'addMethods')) { return $this->getMockBuilder('stdClass')->addMethods(array('__invoke'))->getMock(); } else {