PHP 클래스 Cassandra\UserTypeIntegrationTest

상속: extends CollectionsIntegrationTest
파일 보기 프로젝트 열기: datastax/php-driver 1 사용 예제들

공개 메소드들

메소드 설명
assertAddressValue ( UserTypeValue $address, UserTypeValue $expected = null ) Make assertions on a address user type.
generateAddressValue ( ) : UserTypeValue Generate a valid address user type with values that can be used for testing.
getAddressUserType ( ) : UserTypeValue Get the address user type for assigning values.
getPhoneUserType ( ) : UserTypeValue Get the phone user type for assigning values.
testCompleteUserType ( ) User type using a complete user type value.
testCompositeTypes ( $type, $value ) User types with composite types
testEmpty ( $type, $value ) Bind statement with an empty user type
testFrozenRequired ( ) Frozen decoration required for user type.
testInvalidAddressUserTypeAssignedValue ( ) Invalid value assigned to user type .
testInvalidPhoneUserTypeAssignedValue ( ) Invalid value assigned to user type .
testMultipleComponents ( $type, $value ) User types with multiple components
testNestedTypes ( $type, $value ) User types with nested composite types
testNull ( ) Bind statement with an null user type
testPartial ( ) Partial user type
testPartialUserType ( ) User type using a partial user type value.
testScalarTypes ( $type, $value ) User types using scalar/simple datatypes
testUnavailableUserType ( ) Unavailable user type referenced.
userTypeWithCompositeTypes ( ) Data provider for user types with composite types
userTypeWithMultipleComponents ( ) Data provider for user types with multiple components
userTypeWithMultipleEmptyComponents ( )
userTypeWithNestedTypes ( ) Data provider for user types with nested composite types
userTypeWithScalarTypes ( ) Data provider for user types with scalar types

보호된 메소드들

메소드 설명
setUp ( ) Setup the database for the user type tests.

비공개 메소드들

메소드 설명
insertAddress ( UserTypeValue $address ) : Timeuuid Insert an address into the table.
selectAddress ( Timeuuid $key ) : UserTypeValue Select the address from the table.

메소드 상세

assertAddressValue() 공개 정적인 메소드

Make assertions on a address user type.
public static assertAddressValue ( UserTypeValue $address, UserTypeValue $expected = null )
$address UserTypeValue Address user type to validate
$expected UserTypeValue Expected address user type value (DEFAULT: self::generateAddressValue())

generateAddressValue() 공개 정적인 메소드

Generate a valid address user type with values that can be used for testing.
public static generateAddressValue ( ) : UserTypeValue
리턴 UserTypeValue Valid address user type for testing

getAddressUserType() 공개 정적인 메소드

Get the address user type for assigning values.
public static getAddressUserType ( ) : UserTypeValue
리턴 UserTypeValue Address user type

getPhoneUserType() 공개 정적인 메소드

Get the phone user type for assigning values.
public static getPhoneUserType ( ) : UserTypeValue
리턴 UserTypeValue Phone user type

setUp() 보호된 메소드

Setup the database for the user type tests.
protected setUp ( )

testCompleteUserType() 공개 메소드

This test will ensure that the PHP driver supports the user types. This test uses a complete user type will all values assigned for the associated user type.

testCompositeTypes() 공개 메소드

This test ensures that user types work with other nested collections and other composite types such as UDTs and tuples.
public testCompositeTypes ( $type, $value )

testEmpty() 공개 메소드

Bind statement with an empty user type
public testEmpty ( $type, $value )

testFrozenRequired() 공개 메소드

This test will ensure that the PHP driver throws an exception when interacting with Cassandra 2.1+ (< 3.0) and the frozen decoration is omitted.
public testFrozenRequired ( )

testInvalidAddressUserTypeAssignedValue() 공개 메소드

This test will ensure that the PHP driver throws and exception when assigning a value to a user type that is not valid for that type.

testInvalidPhoneUserTypeAssignedValue() 공개 메소드

This test will ensure that the PHP driver throws and exception when assigning a value to a user type that is not valid for that type.

testMultipleComponents() 공개 메소드

User types with multiple components
public testMultipleComponents ( $type, $value )

testNestedTypes() 공개 메소드

This test ensures that user types work with other nested collections and other composite types such as UDTs and tuples.
public testNestedTypes ( $type, $value )

testNull() 공개 메소드

Bind statement with an null user type
public testNull ( )

testPartial() 공개 메소드

This test will ensure that partial user types return the correct value.
public testPartial ( )

testPartialUserType() 공개 메소드

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.
public testPartialUserType ( )

testScalarTypes() 공개 메소드

This test will ensure that the PHP driver supports the user types collection with all PHP driver supported scalar/simple datatypes.
public testScalarTypes ( $type, $value )

testUnavailableUserType() 공개 메소드

This test will ensure that the PHP driver throws an exception when referencing a non-existent user type.

userTypeWithCompositeTypes() 공개 메소드

Data provider for user types with composite types

userTypeWithMultipleComponents() 공개 메소드

Data provider for user types with multiple components

userTypeWithMultipleEmptyComponents() 공개 메소드

userTypeWithNestedTypes() 공개 메소드

Data provider for user types with nested composite types

userTypeWithScalarTypes() 공개 메소드

Data provider for user types with scalar types