public function case_delete()
 {
     $this->given($q = new CUT())->when($d = $q->delete(), $d->enableEncloseIdentifier(), $result = (string) $d->from('foo')->where('"b" = 0'))->then->string($result)->isEqualTo('DELETE FROM "foo" WHERE "b" = 0');
 }
Exemple #2
0
 public function case_basic_delete()
 {
     $this->given($q = new CUT())->when($result = (string) $q->delete()->from('foo')->where('b = 0')->or->where($q->where('b > 10')->and->where('b < 100')))->then->string($result)->isEqualTo('DELETE FROM foo WHERE b = 0 OR (b > 10 AND b < 100)');
 }