Cassandra\SimpleStatementIntegrationTest::testByNameInvalidBindName PHP Метод

testByNameInvalidBindName() публичный Метод

This test will ensure that the PHP driver throws an excretion when attempting to bind a value using an invalid name.
    public function testByNameInvalidBindName()
    {
        // Create the table
        $query = "CREATE TABLE {$this->tableNamePrefix} (key timeuuid PRIMARY KEY, value_int int)";
        $this->session->execute(new SimpleStatement($query));
        // Create the insert query and attempt to insert invalid valid name
        $query = "INSERT INTO {$this->tableNamePrefix} (key, value_int) VALUES (?, ?)";
        $values = array("key" => new Timeuuid(), "wrong_name" => 1);
        $statement = new SimpleStatement($query);
        $options = new ExecutionOptions(array("arguments" => $values));
        $this->session->execute($statement, $options);
    }