private function getSerialized(StringQuery $query) { return 'string[' . $query->getPropertyId()->getNumericId() . ':"' . $query->getStringValue()->getValue() . '"]'; }
public function testGetStringValue() { $query = new StringQuery(new PropertyId('P42'), new StringValue('foo')); $this->assertEquals(new StringValue('foo'), $query->getStringValue()); }