Example #1
0
 function testTwoSet()
 {
     $pixelDb = new PixelDb();
     $pixelDb->update('users')->set(['username' => 'Antigya Avaga'])->set(['password' => 'New Password'], null, 'sensitive_');
     $this->assertEquals('UPDATE users SET username = :p_username, password = :sensitive_password', $pixelDb->getSqlString());
 }
Example #2
0
 function testUpdate()
 {
     $pixelDb = new PixelDb();
     $pixelDb->update('users');
     $this->assertEquals('UPDATE users', $pixelDb->getSqlString());
 }