Exemple #1
0
 /**
  * Proxy method to return language of the wrapped PHPCR Query
  *
  * @return string The language used
  */
 public function getLanguage()
 {
     return $this->query->getLanguage();
 }
 /**
  * Even though the query is defined with QOM, it must return JCR_SQL2 as langugae:
  * http://www.day.com/specs/jcr/2.0/6_Query.html#6.9.3%20Getting%20the%20Language.
  */
 public function testGetLanguage()
 {
     $this->assertEquals(\PHPCR\Query\QueryInterface::JCR_SQL2, $this->query->getLanguage());
 }