/**
  * User type using a partial user type value.
  *
  * This test will ensure that the PHP driver supports the user types. This
  * test uses a partial user type where some values will not be assigned.
  *
  * @test
  * @ticket PHP-57
  */
 public function testPartialUserType()
 {
     // Alias missing from a single number
     $phone = $this->getPhoneUserType();
     $phone->set("number", "000-000-0000");
     $numbers = new Set($phone->type());
     $numbers->add($phone);
     $address = UserTypeIntegrationTest::getAddressUserType();
     $address->set("street", "123 Missing Alias Street");
     $address->set("zip", 00);
     $address->set("phone_numbers", $numbers);
     $key = $this->insertAddress($address);
     $this->assertAddressValue($this->selectAddress($key), $address);
     // Missing/NULL values during insert
     $address = UserTypeIntegrationTest::getAddressUserType();
     $address->set("street", "1 Furzeground Way");
     $key = $this->insertAddress($address);
     $address->set("zip", null);
     // Add null 'zip' to assert properly (Server will default null values)
     $address->set("phone_numbers", null);
     // Add null 'phone_numbers' (same as above)
     $this->assertAddressValue($this->selectAddress($key), $address);
 }