Beispiel #1
0
 /** @test */
 public function shouldNotThrowExceptionOnPathManipulationIfAllowed()
 {
     $this->parser->allowDirectoryTraversal();
     $simpleRaml = $this->parser->parse(__DIR__ . '/fixture/treeTraversal/bad.raml');
     $resource = $simpleRaml->getResourceByUri('/songs');
     $method = $resource->getMethod('get');
     $response = $method->getResponse(200);
     $body = $response->getBodyByType('application/json');
     $schema = $body->getSchema();
     $this->assertInstanceOf('\\Raml\\Schema\\Definition\\JsonSchemaDefinition', $schema);
 }