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); }
public function test_cache() { $cache = new Cache($this->fs, ['tests\\CalcTest.php' => ['src\\BankAccount.php', 'src\\Calc.php']]); $this->fs->saveCache($cache); $this->assertEquals($cache, $this->fs->loadCache()); }