/** * @testdox values should return conditions' values */ public function testValuesShouldReturnConditionsValues() { $query = new ValueParser(array('a' => 0)); $expected = array(0); $actual = $query->values(); $this->assertEquals($expected, $actual); }
public function delete($params) { $params += $this->params; $query = new ValueParser($params['conditions']); $params['conditions'] = $query->conditions(); $values = $query->values(); $sql = $this->renderDelete($params); $query = $this->query($sql, $values); return $query; }