/** * 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); }
protected function setUp() { InvokerConfig::setRequestHelper(new RequestHelper()); }
/** * 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); }