function testTerm() { parent::$logger->debug('testTerm'); $options = new MLPHP\Options(parent::$client); $term = new MLPHP\Term("all-results"); $term->setTermOptions(['unwildcarded']); $constraint = new MLPHP\PropertiesConstraint("myProperty"); $term->setDefault($constraint); $options->setTerm($term); $this->assertXmlStringEqualsXmlString(' <options xmlns="http://marklogic.com/appservices/search"> <term> <empty apply="all-results"/> <term-option>unwildcarded</term-option> <default> <properties/> </default> </term> </options> ', $options->getAsXML()); }