/**
  * @since 2.2
  *
  * @param Store $store
  * @param DescriptionInterpreterFactory $descriptionInterpreterFactory
  */
 public function __construct(Store $store, DescriptionInterpreterFactory $descriptionInterpreterFactory)
 {
     $this->store = $store;
     $this->dispatchingDescriptionInterpreter = $descriptionInterpreterFactory->newDispatchingDescriptionInterpreter($this);
     $this->circularReferenceGuard = new CircularReferenceGuard('sql-query');
     $this->circularReferenceGuard->setMaxRecursionDepth(2);
     QuerySegment::$qnum = 0;
 }
 public function testCanConstructDispatchingDescriptionInterpreter()
 {
     $querySegmentListBuilder = $this->getMockBuilder('\\SMW\\SQLStore\\QueryEngine\\QuerySegmentListBuilder')->disableOriginalConstructor()->getMock();
     $instance = new DescriptionInterpreterFactory();
     $this->assertInstanceOf('\\SMW\\SQLStore\\QueryEngine\\DescriptionInterpreters\\DispatchingDescriptionInterpreter', $instance->newDispatchingDescriptionInterpreter($querySegmentListBuilder));
 }