Exemplo n.º 1
0
 public function testGetParserErrors()
 {
     $graph = new SimpleGraph();
     $graph->add_rdf($this->_single_triple_turtle);
     $errors = $graph->get_parser_errors();
     $this->assertTrue(empty($errors), "Errors should be empty");
     $graph->add_rdf($this->_single_triple_invalid_rdf);
     $errors = $graph->get_parser_errors();
     $this->assertFalse(empty($errors), "Errors should not be empty");
     $this->assertTrue(!empty($errors[0]), "Errors first item should not be empty");
 }