Exemplo n.º 1
0
 public function test_core_building()
 {
     \System\Cache::build_core();
     $dir = BASE_DIR . '/var/cache/runtime';
     $cmd = implode(';', array('cd ' . $dir, 'php core.php'));
     $out = '';
     $stat = 0;
     exec($cmd, $out, $stat);
     $this->assertEquals('', implode('', $out));
     $this->assertEquals(0, $stat);
     unlink($dir . '/core.php');
 }
Exemplo n.º 2
0
 /**
  * Build system core cache
  *
  * @return void
  */
 public function cmd_core()
 {
     \System\Init::basic();
     \Helper\Cli::out('Building system core');
     \System\Cache::build_core();
 }