public function setUp()
 {
     parent::setUp();
     $this->qr = $this->query->execute();
     //sanity check
     $this->assertInstanceOf('PHPCR\\Query\\QueryResultInterface', $this->qr);
 }
 public function setUp()
 {
     parent::setUp();
     try {
         $this->factory = $this->sharedFixture['qm']->getQOMFactory();
     } catch (\Exception $e) {
         $this->markTestSkipped('Can not get the QOM factory, skipping tests about QOM query. ' . $e->getMessage());
     }
     $source = $this->factory->selector('data', 'nt:folder');
     $constraint = $this->factory->orConstraint($this->factory->descendantNode('data', '/tests_general_base'), $this->factory->sameNode('data', '/tests_general_base'));
     $orderings = array();
     $columns = array();
     $this->query = $this->factory->createQuery($source, $constraint, $orderings, $columns);
 }
 /**
  * in addition to base stuff, prepare $this->query with a simple select query.
  */
 public function setUp()
 {
     parent::setUp();
     $this->query = $this->sharedFixture['qm']->createQuery('SELECT * FROM nt:folder', \PHPCR\Query\QueryInterface::JCR_SQL2);
 }
 /**
  * in addition to base stuff, prepare $this->query with a simple select query.
  */
 public function setUp()
 {
     parent::setUp();
     $this->query = $this->sharedFixture['qm']->createQuery('//element(*,nt:folder)', \PHPCR\Query\QueryInterface::XPATH);
 }