protected function setUp()
 {
     parent::setUp();
     $this->manager = new \Ytake\LaravelAspect\AspectManager($this->app);
     $this->resolveManager();
     $this->command = new \Ytake\LaravelAspect\Console\ClearCacheCommand($this->app['config'], $this->app['files']);
     $this->command->setLaravel(new MockApplication());
 }
 protected function setUp()
 {
     parent::setUp();
     $this->manager = new \Ytake\LaravelAspect\AspectManager($this->app);
     $this->resolveManager();
     $this->log = $this->app['Psr\\Log\\LoggerInterface'];
     $this->file = $this->app['files'];
     if (!$this->app['files']->exists($this->getDir())) {
         $this->app['files']->makeDirectory($this->getDir());
     }
 }
Example #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->manager = new \Ytake\LaravelAspect\AspectManager($this->app);
     $this->resolveManager();
 }
Example #4
0
 public function tearDown()
 {
     $this->file->deleteDirectory($this->getDir());
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     $aspectConfigure = $this->app['config']->get('ytake-laravel-aop.aspect.drivers');
     $this->kernel = new \Ytake\LaravelAspect\RayAspectKernel($this->app, $this->app['files'], $aspectConfigure['ray']);
 }