#!/usr/bin/env php register(); // get $rootPath based on $autoloadPath $rootPath = dirname($autoloadPath, 2); $testSuite = TestSuite::getInstance($rootPath); $isDecorated = (new ArgvInput())->getParameterOption('--colors', 'always') !== 'never'; $output = new ConsoleOutput(ConsoleOutput::VERBOSITY_NORMAL, $isDecorated); $container = Container::getInstance(); $container->add(TestSuite::class, $testSuite); $container->add(OutputInterface::class, $output); ValidatesEnvironment::in($testSuite); exit($container->get(Command::class)->run($_SERVER['argv'])); })();