/** * @testdox Setter and getter specificaton */ public function testSetGetSpecification() { $match = new Match(); // Test default specification $this->assertEquals('MATCH(%1$s)', $match->getSpecification()); $this->assertInstanceOf('\\SphinxSearch\\Db\\Sql\\Predicate\\Match', $match->setSpecification('TEST_SPECIFICATION')); $this->assertEquals('TEST_SPECIFICATION', $match->getSpecification()); $this->assertEquals([['TEST_SPECIFICATION', [''], [Match::TYPE_VALUE]]], $match->getExpressionData()); }