When invoking getFunctionMock I am getting the following deprecation warnings. * MockBuilder::addMethods() is deprecated and will be removed in PHPUnit 12 without replacement. * MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.