public function setUp()
 {
     parent::setUp();
     $this->fs = m::mock('Caffeinated\\Beverage\\Filesystem');
     $this->compiler = m::mock('Illuminate\\View\\Compilers\\BladeCompiler');
     $this->generator = new StubGenerator($this->compiler, $this->fs);
 }
 public function setUp()
 {
     parent::setUp();
     $this->umask = umask(0);
     $this->workspace = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . time() . mt_rand(0, 1000);
     mkdir($this->workspace, 0777, true);
     $this->workspace = realpath($this->workspace);
     $this->filesystem = new Filesystem();
 }
Exemple #3
0
 public function setUp()
 {
     parent::setUp();
     $this->s = new Sorter();
 }