Beispiel #1
0
 public function testGetExpressionDataWithSubselectAndArrayIdentifier()
 {
     $select = new Select();
     $in = new NotIn(array('foo', 'bar'), $select);
     $expected = array(array('(%s, %s) NOT IN %s', array('foo', 'bar', $select), array($in::TYPE_IDENTIFIER, $in::TYPE_IDENTIFIER, $in::TYPE_VALUE)));
     $this->assertEquals($expected, $in->getExpressionData());
 }
Beispiel #2
0
 public function testGetExpressionDataWithSubselect()
 {
     $in = new NotIn('foo', $select = new Select());
     $expected = array(array('%s NOT IN %s', array('foo', $select), array($in::TYPE_IDENTIFIER, $in::TYPE_VALUE)));
     $this->assertEquals($expected, $in->getExpressionData());
 }