protected function setUp() { parent::setUp(); $testEnvironment = new TestEnvironment(); $this->semanticDataFactory = $testEnvironment->getUtilityFactory()->newSemanticDataFactory(); $this->semanticDataValidator = $testEnvironment->getUtilityFactory()->newValidatorFactory()->newSemanticDataValidator(); }
protected function setUp() { parent::setUp(); $this->descriptionFactory = new DescriptionFactory(); $testEnvironment = new TestEnvironment(); $this->querySegmentValidator = $testEnvironment->getUtilityFactory()->newValidatorFactory()->newQuerySegmentValidator(); }
protected function setUp() { parent::setUp(); $this->store = $this->getMockBuilder('\\SMW\\Store')->disableOriginalConstructor()->getMockForAbstractClass(); $this->descriptionInterpreterFactory = new DescriptionInterpreterFactory(); $testEnvironment = new TestEnvironment(); $this->querySegmentValidator = $testEnvironment->getUtilityFactory()->newValidatorFactory()->newQuerySegmentValidator(); }
protected function setUp() { parent::setUp(); $this->descriptionFactory = new DescriptionFactory(); $this->dataItemFactory = new DataItemFactory(); $this->descriptionInterpreterFactory = $this->getMockBuilder('\\SMW\\SQLStore\\QueryEngine\\DescriptionInterpreterFactory')->disableOriginalConstructor()->getMock(); $testEnvironment = new TestEnvironment(); $this->querySegmentValidator = $testEnvironment->getUtilityFactory()->newValidatorFactory()->newQuerySegmentValidator(); }