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