<?php

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

// Check that the extension is loaded.
if ( ! extension_loaded('ds')) {
    echo "ds extension is not enabled\n";
    exit(1);
}

// 'false' so that PHPUnit doesn't use "exit"
\PHPUnit\TextUI\Command::main(false);

// Attempt to collect anything left over from the tests.
gc_collect_cycles();

<?php

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

// Check that the extension is loaded.
if ( ! extension_loaded('ds')) {
    echo "ds extension is not enabled\n";
    exit(1);
}

// 'false' so that PHPUnit doesn't use "exit"
PHPUnit_TextUI_Command::main(false);

// Attempt to collect anything left over from the tests.
gc_collect_cycles();

--- 
+++ 
@@ -9,7 +9,7 @@
 }
 
 // 'false' so that PHPUnit doesn't use "exit"
-PHPUnit_TextUI_Command::main(false);
+\PHPUnit\TextUI\Command::main(false);
 
 // Attempt to collect anything left over from the tests.
 gc_collect_cycles();
Fix PHPUnit namespace for 6.x
