Beispiel #1
0
 /** @test */
 public function shouldThrowExceptionOnPathManipulationIfNotAllowed()
 {
     $this->parser->preventDirectoryTraversal();
     $this->setExpectedException('\\Raml\\Exception\\InvalidJsonException');
     $this->parser->parse(__DIR__ . '/fixture/treeTraversal/bad.raml');
 }