コード例 #1
0
 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());
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }