function test_delete_record_with_composite_pkey() { $connection = $this->createTable(); $connection->exec("INSERT INTO users VALUES ('foo', 'bar', 'John')"); $gateway = new pdoext_TableGateway('users', $connection); $gateway->delete(array('a' => 'foo', 'b' => 'bar')); $result = $connection->pexecute("SELECT COUNT(*) FROM users WHERE name = 'John'"); $row = $result->fetch(); $this->assertEqual($row[0], 0); }