/** * @dataProvider disjunctionProvider */ public function testCommonMethods($descriptions, $expected) { $instance = new Disjunction($descriptions); $this->assertEquals($expected['descriptions'], $instance->getDescriptions()); $this->assertEquals($expected['queryString'], $instance->getQueryString()); $this->assertEquals($expected['queryStringAsValue'], $instance->getQueryString(true)); $this->assertEquals($expected['isSingleton'], $instance->isSingleton()); $this->assertEquals(array(), $instance->getPrintRequests()); $this->assertEquals($expected['size'], $instance->getSize()); $this->assertEquals($expected['depth'], $instance->getDepth()); $this->assertEquals($expected['queryFeatures'], $instance->getQueryFeatures()); }