/** * */ public function tearDown() { if (null !== $this->fixture) { $this->fixture->emptyAllTables(); } parent::tearDown(); }
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 tearDown() { if (null !== $this->fixture) { $this->fixture->dropGraph($this->testGraph); } parent::tearDown(); }