src/Runners/PHPUnit/Options.php
protected static function phpunit(): string
    {
        $vendor = static::vendorDir();

        $phpunit = $vendor . \DIRECTORY_SEPARATOR . 'phpunit' . \DIRECTORY_SEPARATOR . 'phpunit' . \DIRECTORY_SEPARATOR . 'phpunit';
        if (file_exists($phpunit)) {
            return $phpunit;
        }

        return 'phpunit';
    }
protected static function phpunit(): string
    {
        $vendor = static::vendorDir();

        $phpunit = $vendor . \DIRECTORY_SEPARATOR . 'phpunit' . \DIRECTORY_SEPARATOR . 'phpunit' . \DIRECTORY_SEPARATOR . 'phpunit';
        if (file_exists($phpunit)) {
            return $phpunit;
        }

        return 'phpunit';
    }
protected static function phpunit ( ) : string { $ vendor = static :: vendorDir ( ) ; $ phpunit = $ vendor . \ DIRECTORY_SEPARATOR . 'phpunit' . \ DIRECTORY_SEPARATOR . 'phpunit' . \ DIRECTORY_SEPARATOR . 'phpunit' ; if ( file_exists ( $ phpunit ) ) { return $ phpunit ; } return 'phpunit' ; }
Get the path to phpunit
First checks if a Windows batch script is in the composer vendors directory.
Composer automatically handles creating a .bat file, so if on windows this should be the case.
Second look for the phpunit binary under nix
Defaults to phpunit on the users PATH.

@return string $phpunit the path to phpunit
Get the path to phpunit First checks if a Windows batch script is in the composer vendors directory . Composer automatically handles creating a . bat file so if on windows this should be the case . Second look for the phpunit binary under nix Defaults to phpunit on the users PATH .