/**
  * Copied from the view service provider...
  *
  * Register the view environment.
  *
  * @return void
  */
 public function registerEnvironment()
 {
     $me = $this;
     $this->app['view'] = $this->app->share(function ($app) use($me) {
         // Next we need to grab the engine resolver instance that will be used by the
         // environment. The resolver will be used by an environment to get each of
         // the various engine implementations such as plain PHP or Blade engine.
         $resolver = $app['view.engine.resolver'];
         $finder = $app['view.finder'];
         $env = new View\Environment($resolver, $finder, $app['events']);
         // We will also set the container instance on this view environment since the
         // view composers may be classes registered in the container, which allows
         // for great testable, flexible composers for the application developer.
         $env->setContainer($app);
         $env->share('app', $app);
         return $env;
     });
 }
 public function __construct()
 {
     parent::__construct(m::mock('Illuminate\\View\\Engines\\EngineResolver'), m::mock('Illuminate\\View\\FileViewFinder'), m::mock('Illuminate\\Events\\Dispatcher'));
 }