/** * @covers flowcode\ceibo\domain\Query::buildStatement */ public function testBuildStatement() { $this->object->Where("name = :tag", array(":tag" => "test")); $this->object->AndWhere("id = :id", array(":id" => 1)); $expectedQuery = "SELECT * FROM ovni WHERE name = :tag AND id = :id "; $this->assertEquals($expectedQuery, $this->object->buildStatement()); $this->assertEquals(2, count($this->object->getBindValues())); }