PHP Class Cassandra\PagingIntegrationTest

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

Public Methods

Method Description
setUp ( )
testInvalidToken ( ) Use an invalid paging state token
testNextPageAsyncCaching ( ) Verify next page asynchronous caching in Cassandra\Rows
testNextPageCaching ( ) Verify next page caching in Cassandra\Rows
testNoPagingMemoryLeak ( ) Paging advancement does not create memory leak
testNullToken ( ) Use a null paging token
testPagingToken ( ) Use paging state token

Private Methods

Method Description
convertRowsToArray ( $rows, $columnName ) : array Convert a single column of a collection of rows into an array
randomString ( integer $length ) : string Generate a random string
validatePageResults ( $rows ) : integer Page through the results while validating no memory leaks exists

Method Details

setUp() public method

public setUp ( )

testInvalidToken() public method

This test driver properly handles Cassandra's error result when passing an invalid paging state token.
public testInvalidToken ( )

testNextPageAsyncCaching() public method

Verify next page asynchronous caching in Cassandra\Rows

testNextPageCaching() public method

Verify next page caching in Cassandra\Rows
public testNextPageCaching ( )

testNoPagingMemoryLeak() public method

This test will ensure that the driver does not create memory leaks associated advancing to the next page of results.

testNullToken() public method

This test ensures that the driver properly handles a null paging state token.
public testNullToken ( )

testPagingToken() public method

This test ensure that the paging state token is properly returned and can be used to get the next page results.
public testPagingToken ( )