public function testDeleteNonStringNamespace()
 {
     $this->setExpectedException('InvalidArgumentException', '$prefix should be a string and cannot be null or empty');
     EasyRdf_Namespace::delete($this);
 }
 public function tearDown()
 {
     EasyRdf_Namespace::reset();
     EasyRdf_Namespace::delete('example');
 }
Example #3
0
 public static function parse_query($wp)
 {
     if (!array_key_exists('__datadump', $wp->query_vars)) {
         return;
     }
     //$format = $this->map_mime_request();
     include 'library/EasyRdf.php';
     include 'library/object-handlers.php';
     foreach ($this->standard_namespaces as $key => $value) {
         EasyRdf_Namespace::set($key, $value);
     }
     EasyRdf_Namespace::delete("rss");
     $graph = new EasyRdf_Graph();
     //$lh_rdf_object_handlers = new LH_rdf_object_handlers($format);
     die;
 }
 public function tearDown()
 {
     EasyRdf_Namespace::delete('ex');
 }
 public function tearDown()
 {
     EasyRdf_Literal::deleteDatatypeMapping('ex:mytype');
     EasyRdf_Namespace::delete('ex');
 }
Example #6
0
 public function testDeleteNonStringNamespace()
 {
     $this->setExpectedException('InvalidArgumentException');
     EasyRdf_Namespace::delete($this);
 }