Exemplo n.º 1
0
 public function testIsConstructedWithAValueAndOptionallyTheFieldName()
 {
     $oTerm = new Sequin\Term('value');
     $this->assertEquals('value', $oTerm->value());
     $this->assertNull($oTerm->fieldName());
     $oTerm = new Sequin\Term('value', 'fieldName');
     $this->assertEquals('value', $oTerm->value());
     $this->assertEquals('fieldName', $oTerm->fieldName());
 }