/**
  * @dataProvider queryStringProvider
  */
 public function testCreateFromString($queryString, $configuration, $expected)
 {
     $instance = new ConfigurableQueryCreator(ApplicationFactory::getInstance()->getQueryFactory());
     $query = $instance->withConfiguration($configuration)->createFromString($queryString);
     $this->assertInstanceOf('\\SMWQuery', $query);
     $this->assertSame($expected, $query->getAsString());
 }
 /**
  * @since 2.5
  *
  * @return ConfigurableQueryCreator
  */
 public function newConfigurableQueryCreator()
 {
     $queryCreator = new ConfigurableQueryCreator($this, $GLOBALS['smwgQDefaultNamespaces'], $GLOBALS['smwgQDefaultLimit']);
     $queryCreator->setQFeatures($GLOBALS['smwgQFeatures']);
     $queryCreator->setQConceptFeatures($GLOBALS['smwgQConceptFeatures']);
     return $queryCreator;
 }