public function testToResource() { $title = MwRdfTest::createTestTitle('SomeRandomTitle'); $agent = MwRdf::ModelingAgent($title); $res = $agent->titleResource(); $this->assertTrue($res instanceof LibRDF_URINode, get_class($res)); }