#!/usr/bin/env php getParameterOption('--test-directory', 'tests')); $isDecorated = $argv->getParameterOption('--colors', 'always') !== 'never'; $output = new ConsoleOutput(ConsoleOutput::VERBOSITY_NORMAL, $isDecorated); $container = Container::getInstance(); $container->add(TestSuite::class, $testSuite); $container->add(OutputInterface::class, $output); $args = $_SERVER['argv']; // Let's remove any arguments that PHPUnit does not understand if ($argv->hasParameterOption('--test-directory')) { foreach ($args as $key => $value) { if (strpos($value, '--test-directory') !== false) { unset($args[$key]); } } } $kernel = Kernel::boot(); $result = $kernel->handle($args); $kernel->shutdown(); exit($result); })();