예제 #1
0
 public function testIfClearCleansDirectory()
 {
     $fs = m::mock('Illuminate\\Filesystem\\Filesystem');
     $fs->shouldReceive('cleanDirectory')->once()->with($dir = '_static');
     $cleaner = new Cleaner($dir, $fs);
     $cleaner->clear();
 }
예제 #2
0
파일: ClearFiles.php 프로젝트: radmen/lassy
 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $this->cleaner->clear();
     $this->info('Static files were deleted');
 }