Skip to content

Commit 74e812b

Browse files
Michael Ferompenick
authored andcommitted
test: Fixing broken tests
1 parent 47c08f9 commit 74e812b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/integration/Cassandra/PagingIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function testInvalidToken() {
106106
* @ticket PHP-46
107107
*
108108
* @expectedException Cassandra\Exception\InvalidArgumentException
109-
* @expectedExceptionMessage paging_state_token must be a string, '' given
109+
* @expectedExceptionMessageRegExp |paging_state_token must be a string.*|
110110
*/
111111
public function testNullToken() {
112112
$statement = new SimpleStatement(

tests/integration/Cassandra/SimpleStatementIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function testCaseSensitiveByNameInvalidBindName() {
218218
$this->session->execute(new SimpleStatement($query));
219219

220220
// Create the insert query and attempt to insert invalid valid name
221-
$query = "INSERT INTO {$this->tableNamePrefix} (key, value_int, \"value_iNT\") VALUES (?, ?, ?)";
221+
$query = "INSERT INTO {$this->tableNamePrefix} (key, \"value_TeXT\", \"value_iNT\") VALUES (?, ?, ?)";
222222
$values = array(
223223
"key" => new Timeuuid(),
224224
"value_iNT" => 1,
@@ -276,4 +276,4 @@ public function testByNameNullValue() {
276276
$this->assertNull($row["value_int"]);
277277
$this->assertNull($row["value_boolean"]);
278278
}
279-
}
279+
}

0 commit comments

Comments
 (0)