/**
  * Execute an action on the controller.
  *
  * @param string $method
  * @param array  $parameters
  * @return \Illuminate\Http\Response
  */
 public function callAction($method, $parameters)
 {
     $rMethod = new ReflectionMethod($this, $method);
     $resolver = new MethodArgumentResolver($this->container);
     return Controller::callAction($method, $resolver->resolve($rMethod, $parameters));
 }
 /** @test */
 public function resolvesAClassInstanceFromTheContainer()
 {
     $result = $this->resolver->resolve($this->reflection, ['bar' => 'jeremy']);
     $this->assertInstanceOf('stdClass', $result[0]);
     $this->assertEquals('jeremy', $result[1]);
 }