Esempio n. 1
0
 function test_fetch_record_with_composite_pkey()
 {
     $connection = $this->createTable();
     $connection->exec("INSERT INTO users VALUES ('foo', 'bar', 'John')");
     $gateway = new pdoext_TableGateway('users', $connection);
     $john = $gateway->fetch(array('a' => 'foo', 'b' => 'bar'));
     $this->assertEqual($john->getArrayCopy(), array('a' => 'foo', 'b' => 'bar', 'name' => 'John'));
 }