<?php

require __DIR__."/../vendor/autoload.php";

class_alias(
    PHPUnit\Framework\Constraint\Constraint::class,
    PHPUnit_Framework_Constraint::class,
    true
);

<?php

require __DIR__."/../vendor/autoload.php";

if (class_exists(PHPUnit\Framework\Constraint\Constraint::class, true)) {
    class_alias(
        PHPUnit\Framework\Constraint\Constraint::class,
        PHPUnit_Framework_Constraint::class,
        true
    );
}

Allow running tests under PHPUnit 5
Allow running tests under PHPUnit 5
