In fact, it can be updated in three simple steps:
- Download the latest version of PHPUnit here: https://phpunit.de/index.html
- Copy phpunit.phar to C: \ xampp \ php.
- In the file: 'phpunit.bat', update the following line:
"%PHPBIN%" "C:\xampp\php\phpunit" %* to: "%PHPBIN%" "C:\xampp\php\phpunit.phar" % *
You do not need to restart Apache.
Additional note : in your tests you need to replace: phpunit_framework_testcase with: TestCase
And include: use PHPUnit\Framework\TestCase at the top of the test files.

Of course, test suites are still compatible on my production server (centos7, follow the official documentation for updating on Linux https://phpunit.de/getting-started.html ).

source share