protected function call() { if ($this->request === null || !$this->request->isValid($this->validationSchema)) { throw new InvalidRequestException("The request is not valid"); } $this->addPostData('REQUEST', (string) $this->request); return parent::call(); }
public function testValidRequestValidation() { $this->request->addOrder(["IdOrder" => "12345", "Marketplace" => "Amazon", "Status" => "Canceled"]); $this->assertTrue($this->request->isValid($this->webservice->getValidationSchema())); }