Пример #1
0
 public function testSerializeResourceToString()
 {
     $this->markTestNeedsDatabase();
     $this->authenticateDbUser();
     $r = 'http://localhost/OntoWiki/Config/';
     $result = $this->_object->serializeResourceToString($r, $r);
     $this->assertTrue(is_string($result));
 }
 public function testSerializeResourceToStringWithN3()
 {
     $this->markTestNeedsDatabase();
     $this->authenticateDbUser();
     $g = 'http://localhost/OntoWiki/Config/';
     $this->_object->initializeWithFormat('ttl');
     $result1 = $this->_object->serializeResourceToString($g, $g);
     require_once 'Erfurt/Syntax/RdfSerializer/Adapter/Turtle.php';
     $adapter = new Erfurt_Syntax_RdfSerializer_Adapter_Turtle();
     $result2 = $adapter->serializeResourceToString($g, $g);
     $this->assertEquals($result1, $result2);
 }