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