Example #1
0
 /**
  * @covers flowcode\ceibo\domain\Query::AndWhere
  */
 public function testAndWhere()
 {
     $this->object->AndWhere("id = :id", array(":id" => 1));
     $this->object->AndWhere("name = :name", array(":name" => 1));
     $this->object->AndWhere("description = :description", array(":description" => 1));
     $this->assertEquals(3, count($this->object->getAndWheres()));
     $this->assertEquals(3, count($this->object->getBindValues()));
     $bindValues = $this->object->getBindValues();
     $this->assertEquals(1, $bindValues[":id"]);
 }