[FIX] TikiLib_LibTest: Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10
From task: https://avan.tech/item93845-Continuous-integration-pipelines-Upgrade-to-PHPUnit-10
According to this: https://github.com/sebastianbergmann/phpunit/issues/5062 used expect*() methods have been removed in PHPUnit 10