How can older versions of PHPUnit be installed for PHP 5.5 and 5.6?

To install older versions of PHPUnit for PHP 5.5 and 5.6, you can use Composer to specify the version you want to install in your project's composer.json file. This allows you to specify the exact version of PHPUnit that is compatible with PHP 5.5 and 5.6.

{
    "require-dev": {
        "phpunit/phpunit": "4.8.*"
    }
}