We upgraded our systems to PHP7.0. This required us to upgrade PHPUnit to 5.5, since 4.8 does not support PHP7. This leads to the following error, which sets a crash in phpunit in our CI
PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead
Now it looks like we need to touch 1200+ unit tests to reorganize how we build our layouts.
Is there a way to suppress this warning or quickly convert our use of getMock to createMock , which seems to work differently so that the global find / replace does not shorten it?
php unit-testing phpunit
Umbrel
source share