Fixes a potential fatal error from sprintf not getting enough arguments when formatting exception message in ResultPrinter71::formatExceptionMsg.
This occurred when the failing assertions had custom messages.
Additionally the fix prevents the same from occurring if an exception message contains %'s.
Other than that thank you for making our test output bearable to look at, as well as more informative.
Example output from it happening on circleci:
Warning: sprintf(): Too few arguments in /home/circleci/project/vendor/codedungeon/phpunit-result-printer/src/ResultPrinter71.php on line 77
Fixes a potential fatal error from sprintf not getting enough arguments when formatting exception message in ResultPrinter71::formatExceptionMsg. This occurred when the failing assertions had custom messages.
Additionally the fix prevents the same from occurring if an exception message contains %'s.
Other than that thank you for making our test output bearable to look at, as well as more informative.
Example output from it happening on circleci: