ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
RequestProcessorBadVerbTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
26class RequestProcessorBadVerbTest extends RequestProcessorTestCase
27{
28 public function testGetResponseToRequestBadVerbError(): void
29 {
30 $processor = new RequestProcessor(
31 $this->getWriter(),
32 $this->getSettings(),
33 $this->getRepository(),
34 $this->getTokenHandler()
35 );
36
37 $expected_response = <<<XML
38 <error_response>
39 <response_info>base url:NoVerb:</response_info>
40 <error>badVerb</error>
41 </error_response>
42 XML;
43
44 $response = $processor->getResponseToRequest($this->getRequest('base url', Verb::NULL, []));
45
46 $this->assertXmlStringEqualsXmlString($expected_response, $response->saveXML());
47 }
48}
error(string $a_errmsg)
$response
Definition: xapitoken.php:93