public function test_merge_default_configurations_if_not_specified() { $config = ['phpunit' => 'phpunit']; $merged = ['phpunit' => 'phpunit', 'ignore' => ['^vendor']]; $this->fs->saveConfigFile(new Config($config)); $this->assertEquals($merged, $this->fs->loadConfig()->getArrayCopy()); }
public static function createRunCommand() { $fs = new FileSystem(getcwd()); $config = $fs->loadConfig(); $cache = $fs->loadCache(); $phpunit = new Phpunit($config['phpunit']); return new RunCommand($phpunit, $cache, $fs); }
public function __construct() { $root = getcwd(); $fs = new FileSystem($root); $cache = $fs->loadCache(); $config = $fs->loadConfig(); if (function_exists('phpdbg_start_oplog')) { $driver = new PhpdbgDriver(); } else { $driver = new XdebugDriver(); } $this->handler = new DependencyHandler($driver, $cache, $config, $fs); }