public function testAppendPsToWithArrayCollection()
 {
     $collection = new ArrayCollection(array('foo'));
     $cton = new InModelCriterion(new Criteria(), 'A.COL IN ?', 'A.COL', $collection);
     $params = array();
     $ps = '';
     $cton->appendPsTo($ps, $params);
     $this->assertEquals('A.COL IN (:p1)', $ps);
     $expected = array(array('table' => 'A', 'column' => 'COL', 'value' => 'foo'));
     $this->assertEquals($expected, $params);
 }
 /**
  * @dataProvider providerForEmptyValues
  */
 public function testAppendPsToWithNotInAndEmptyValueIsCaseInsensitive($emptyValue)
 {
     $cton = new InModelCriterion(new Criteria(), 'A.COL not in ?', 'A.COL', $emptyValue);
     $params = array();
     $ps = '';
     $cton->appendPsTo($ps, $params);
     $this->assertEquals('1=1', $ps);
     $expected = array();
     $this->assertEquals($expected, $params);
 }