PHP Class Cassandra\RetryPolicyIntegrationTest

Inheritance: extends BasicIntegrationTest
Show file Open project: datastax/php-driver

Public Methods

Method Description
setUp ( ) Setup the retry policy for multiple nodes.
testDowngradingPolicy ( ) Statement execution supports downgrading consistency retry policy.
testFallThroughPolicyRead ( ) Statement execution supports fallthrough retry policy (read exception).
testFallThroughPolicyWrite ( ) Statement execution supports fallthrough retry policy (write exception).

Private Methods

Method Description
assert ( RetryPolicy $policy, $key, $numberOfAsserts, $consistency, integer $retries = self::NUMBER_OF_TIMEOUT_EXCEPTIONS ) Assert n values in the table for a given key.
insert ( $statementType, RetryPolicy $policy, $key, $numberOfInserts, $consistency, integer $retries = self::NUMBER_OF_TIMEOUT_EXCEPTIONS ) Insert n values into the table for a given key.

Method Details

setUp() public method

Setup the retry policy for multiple nodes.
public setUp ( )

testDowngradingPolicy() public method

This test will ensure that the PHP driver supports the downgrading retry policy when executing statements.

testFallThroughPolicyRead() public method

This test will ensure that the PHP driver supports the ability to provide any exception that occurs when executing statements. This test will ensure that a ReadTimeoutException occurs when a consistency level cannot be achieved.

testFallThroughPolicyWrite() public method

This test will ensure that the PHP driver supports the ability to provide any exception that occurs when executing statements. This test will ensure that a WriteTimeoutException occurs when a consistency level cannot be achieved.