示例#1
0
 /**
  * @dataProvider cassandraTypes
  */
 public function testReturnsItsType($type)
 {
     $set = new Set($type);
     $this->assertEquals($type, $set->type());
 }
 /**
  * Get the address user type for assigning values.
  *
  * @return \Cassandra\UserTypeValue Address user type
  */
 public static function getAddressUserType()
 {
     $phoneNumbers = new Set(self::getPhoneUserType()->type());
     return new UserTypeValue(array("street" => \Cassandra::TYPE_TEXT, "zip" => \Cassandra::TYPE_INT, "phone_numbers" => $phoneNumbers->type()));
 }