/** * @dataProvider descriptionProvider */ public function testFindStrategyForDescription($description, $expected) { $compoundConditionBuilder = $this->getMockBuilder('\\SMW\\SPARQLStore\\QueryEngine\\CompoundConditionBuilder')->disableOriginalConstructor()->getMock(); $instance = new ConditionBuilderStrategyFinder($compoundConditionBuilder); $this->assertInstanceOf($expected, $instance->findStrategyForDescription($description)); $instance->clear(); }
private function findBuildStrategyForDescription(Description $description) { if ($this->conditionBuilderStrategyFinder === null) { $this->conditionBuilderStrategyFinder = new ConditionBuilderStrategyFinder($this); } return $this->conditionBuilderStrategyFinder->findStrategyForDescription($description); }