Esempio n. 1
0
    public function setUp()
    {
        MwRdf::$store_options = MwRdf::$store_options . ',new=yes';
        $pagename = MwRdfTest::$username . '/Special page test page';
        $wikitext = <<<EOT
\t\t<rdf>
\t\t@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
\t\t@prefix dc: <http://purl.org/dc/elements/1.1/> .
\t\t@prefix ex: <http://example.org/stuff/1.0/> .

\t\t<http://www.w3.org/TR/rdf-syntax-grammar>
\t\tdc:title "RDF/XML Syntax Specification (Revised)" ;
\t\tex:editor [
\t\tex:fullname "Dave Beckett";
\t\tex:homePage <http://purl.org/net/dajobe/>
\t\t] .
\t\t</rdf>

\t\t[[Main Page]]

\t\t[[category:Test]] [[category:Rdf]]

EOT;
        MwRdf_ModelingAgent_Test::setPageText($pagename, $wikitext);
        $this->title = Title::newFromText($pagename, NS_USER);
    }