public function testEquals()
{
$fields = array('a' => Type::int(), 'b' => Type::text(), 'c' => Type::bigint());
$udt = new UserTypeValue($fields);
$udt->set('a', 1);
$udt->set('b', 'xyz');
$udt->set('c', new Bigint('123'));
$this->assertEquals(count($udt), 3);
$other = new UserTypeValue($fields);
$other->set('a', 1);
$other->set('b', 'xyz');
$other->set('c', new Bigint('123'));
$this->assertEquals($udt, $other);
}