PHP Class Cassandra\TimestampIntegrationTest

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

Public Methods

Method Description
setUp ( ) Create the table and client side timestamp session for the timestamp tests.
testBatchStatement ( ) Batch statement timestamps
testPreparedStatement ( ) Prepared statement timestamps
testSimpleStatement ( ) Simple statement timestamps

Private Methods

Method Description
assert ( $key, $expectedTimestamp, boolean $isEqual = true ) Assert the timestamp for a given key in the table against the value_int.
getTimestamp ( $key ) : integer Get the write time for a given key in the table.
insert ( cassandra\Session $session, cassandra\Statement $statement, integer $key = null, integer $value = null, mixed $timestamp = null ) Insert a key/value into the table. If the key, value, or timestamp is null it will not be added to the execution options for the statement.
now ( ) : integer Get the current time in microseconds.
serverNow ( ) : integer Get the current server time in microseconds.

Method Details

setUp() public method

Create the table and client side timestamp session for the timestamp tests.
public setUp ( )

testBatchStatement() public method

This test will ensure that the PHP driver supports timestamps using batch statements; client, server, and forced (option and using) timestamps are executed.
public testBatchStatement ( )

testPreparedStatement() public method

This test will ensure that the PHP driver supports timestamps using prepared statements; client, server, and forced (option and using) timestamps are executed.

testSimpleStatement() public method

This test will ensure that the PHP driver supports timestamps using simple statements; client, server, and forced (option and using) timestamps are executed.
public testSimpleStatement ( )