PHPUnit classes are now in namespaces
The migration is generally a straightforward class replacement (they are now sorted in namespace):
$ find . -type f -name '*.php' | xargs -n 1 gsed -i 's@PHPUnitFrameworkTestCase@PHPUnit\\Framework\\TestCase@g';
Global state
But for the notifications center, we could need to check the global state:
Exceptions
Furthermore, the best practice to test exceptions has been shifted from @expectedException annotations to expectEception() method.
Reference: https://thephp.cc/news/2016/02/questioning-phpunit-best-practices