/**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function settingUp(array $annotations = null)
 {
     $this->requestHelper = new RequestHelperFixture();
     InvokerConfig::setRequestHelper($this->requestHelper);
     $reflMethod = new ReflectionMethod(InvokeParameterHandlerFixture::class, 'invokedMethod');
     if ($annotations === null) {
         $annotations = array(new Autowired(array()), new RequestParam(array('value' => 'id')));
     }
     $this->object = new InvokeParameterHandler($annotations, $reflMethod);
 }
예제 #2
0
 protected function setUp()
 {
     InvokerConfig::setRequestHelper(new RequestHelper());
 }
예제 #3
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     $helper = new RequestHelperFixture();
     $helper->setMethod(RequestMethod::POST | RequestMethod::XMLHTTPREQUEST);
     InvokerConfig::setRequestHelper($helper);
 }