Skip to content

Commit

Permalink
proper test for empty prefix in rdfxml
Browse files Browse the repository at this point in the history
refs #183
  • Loading branch information
indeyets committed Jul 21, 2014
1 parent 9e8775b commit 0177c62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/EasyRdf/Serialiser/RdfXmlTest.php
Expand Up @@ -464,16 +464,19 @@ public function testSerialiseEmptyPrefix()
'foaf:homepage',
$this->graph->resource('http://example.com/joe/')
);
$joe->set('http://foo/bar/test', 'test');

$rdf = $this->serialiser->serialise($this->graph, 'rdfxml');

$this->assertSame(
"<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n".
"<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n".
" xmlns:foaf=\"http://xmlns.com/foaf/0.1/\">\n\n".
" xmlns:foaf=\"http://xmlns.com/foaf/0.1/\"\n".
" xmlns=\"http://foo/bar/\">\n\n".
" <foaf:Person rdf:about=\"http://foo/bar/me\">\n".
" <foaf:name>Joe Bloggs</foaf:name>\n".
" <foaf:homepage rdf:resource=\"http://example.com/joe/\"/>\n".
" <test>test</test>\n".
" </foaf:Person>\n\n".
"</rdf:RDF>\n",
$rdf
Expand Down

0 comments on commit 0177c62

Please sign in to comment.