/**
  * Create directories
  *
  * @return void
  */
 protected function registerDirectories()
 {
     $storagePath = GCCompiler::storagePath();
     if (!\File::exists($storagePath)) {
         \File::makeDirectory($storagePath);
         chmod($storagePath, 0757);
     }
 }
Exemplo n.º 2
0
 public function testWithoutMocks()
 {
     GCCompiler::cleanup();
     $first = \File::glob(GCCompiler::storagePath(DIRECTORY_SEPARATOR . '*'));
     $this->assertEquals(0, count($first));
     $gcc = new GCCompiler($this->app['config']);
     $this->assertTrue($gcc->compile('file1.js'));
     $second = \File::glob(GCCompiler::storagePath(DIRECTORY_SEPARATOR . '*'));
     $this->assertEquals(1, count($second));
 }