public function setUp() { parent::setUp(); $rights = array(); /* * Load configuration */ if (true === isset($this->config['httpConfig'])) { $this->fixture = new Http(new NodeFactoryImpl(), new StatementFactoryImpl(), new QueryFactoryImpl(), new ResultFactoryImpl(), new StatementIteratorFactoryImpl(), $this->config['httpConfig']); $rights = $this->fixture->getRights(); } else { $this->markTestSkipped('Array httpConfig is not set in the test-config.yml.'); } /* * Skip test, if you dont have enough rights. */ if (false === $rights['graphUpdate']) { $this->markTestSkipped('Test skipped, because the adapter can not create/drop graphs.'); } if (false === $rights['tripleQuerying']) { $this->markTestSkipped('Test skipped, because the adapter can not query triples.'); } if (false === $rights['tripleUpdate']) { $this->markTestSkipped('Test skipped, because the adapter can not update triples.'); } $this->fixture->dropGraph($this->testGraph); $this->fixture->createGraph($this->testGraph); }
public function setUp() { parent::setUp(); if (true === isset($this->config['virtuosoConfig'])) { $this->fixture = new Virtuoso(new NodeFactoryImpl(), new StatementFactoryImpl(), new QueryFactoryImpl(), new ResultFactoryImpl(), new StatementIteratorFactoryImpl(), $this->config['virtuosoConfig']); } else { $this->markTestSkipped('Array virtuosoConfig is not set in the test-config.yml.'); } }
public function setUp() { parent::setUp(); if (true === isset($this->config['arc2Config'])) { $this->fixture = new ARC2(new NodeFactoryImpl(), new StatementFactoryImpl(), new QueryFactoryImpl(), new ResultFactoryImpl(), new StatementIteratorFactoryImpl(), $this->config['arc2Config']); $this->fixture->dropGraph($this->testGraph); $this->fixture->createGraph($this->testGraph); } else { $this->markTestSkipped('Array arc2Config is not set in the test-config.yml.'); } }