Example #1
0
 public static function setUpBeforeClass()
 {
     $app = new Container();
     $app->bind('config', function () {
         return Mockery::mock('config', function ($mock) {
             $mock->shouldReceive('get')->with('config.image_engine', '')->andReturn('Gd');
             $mock->shouldReceive('get')->with('config.quality', '')->andReturn(75);
             $mock->shouldReceive('get')->with('config.cache_folder', '')->andReturn('');
         });
     });
     $app['path.public'] = 'tests/public';
     $app->bind('illuminage', function ($app) {
         return new \Illuminage\Illuminage($app);
     });
     Illuminage::setFacadeApplication($app);
 }