PHP Class Cassandra\PagingIntegrationTest

Inheritance: extends BasicIntegrationTest
Afficher le fichier Open project: datastax/php-driver

Méthodes publiques

Méthode 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

Méthode 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 méthode

public setUp ( )

testInvalidToken() public méthode

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

testNextPageAsyncCaching() public méthode

Verify next page asynchronous caching in Cassandra\Rows

testNextPageCaching() public méthode

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

testNoPagingMemoryLeak() public méthode

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

testNullToken() public méthode

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

testPagingToken() public méthode

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