Gravity: staticExpects is deprecated in new phpunit versions

Stubbing and mocking of static methods is not supported anymore