public function testFalsyConditionValues() { $conn = $this->getMock('SimpleAR\\Database\\Connection', ['select']); $q = new Query(new SelectBuilder(), $conn); $q->setCompiler(new BaseCompiler()); $q->root('Author')->select(['*'], false)->conditions(['age' => 0]); $sql = 'SELECT * FROM `authors` WHERE `age` = ?'; $val = [0]; $conn->expects($this->once())->method('select')->with($sql, $val); $q->run(); }