@ -118,14 +118,14 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
$driver=newMySQLiDriver($this->conf);
$this->assertEquals(1,$driver->insert('table',array('id'=>3,'user'=>'tony','content'=>'some test content','created'=>'2011-11-07 11:35:20')));
$this->assertEquals(3,$driver->getInsertId());
$this->assertEquals(1,$driver->insert('table',array('id'=>null,'user'=>'tony','content'=>'some test content','created'=>'2011-11-07 11:35:20')));
$this->assertEquals(4,$driver->getInsertId());
$this->assertEquals(1,$driver->insert('table',array('id'=>null,'user'=>true,'content'=>'some test content','created'=>'2011-11-07 11:35:20')));
$this->assertEquals(5,$driver->getInsertId());
$this->assertEquals(2,$driver->insert('table',array('id'=>'5','user'=>true,'content'=>'some test content','created'=>'2011-11-07 11:35:20'),array('id'=>8)));
$this->assertEquals(8,$driver->getInsertId());
$this->assertSame(1,$driver->insert('table',array('id'=>3,'user'=>'tony','content'=>'some test content','created'=>'2011-11-07 11:35:20')));
$this->assertSame(3,$driver->getInsertId());
$this->assertSame(1,$driver->insert('table',array('id'=>null,'user'=>'tony','content'=>'some test content','created'=>'2011-11-07 11:35:20')));
$this->assertSame(4,$driver->getInsertId());
$this->assertSame(1,$driver->insert('table',array('id'=>null,'user'=>true,'content'=>'some test content','created'=>'2011-11-07 11:35:20')));
$this->assertSame(5,$driver->getInsertId());
$this->assertSame(2,$driver->insert('table',array('id'=>'5','user'=>true,'content'=>'some test content','created'=>'2011-11-07 11:35:20'),array('id'=>8)));
$this->assertSame(8,$driver->getInsertId());
}
/**
@ -139,8 +139,8 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
$driver=newMySQLiDriver($this->conf);
$this->assertEquals(1,$driver->insert('table',array('id'=>3,'user'=>'tony','content'=>'some test content','created'=>'2011-11-07 11:35:20')));
$this->assertEquals(3,$driver->getInsertId());
$this->assertSame(1,$driver->insert('table',array('id'=>3,'user'=>'tony','content'=>'some test content','created'=>'2011-11-07 11:35:20')));