Cassandra\TupleIntegrationTest::testInvalidType PHP Method

testInvalidType() public method

This test will ensure that an exception will occur when an invalid datatype is used inside a tuple; issues from the server.
public testInvalidType ( )
    public function testInvalidType()
    {
        $validType = Type::tuple(Type::int());
        $invalidType = Type::tuple(Type::varchar());
        $tableName = $this->createTable($validType);
        $options = new ExecutionOptions(array('arguments' => array("key", $invalidType->create("value"))));
        $this->insertValue($tableName, $options);
    }