/** * When you use addSql multiple times, each string is concatenated and * use setSql to assign back the result * * @depends testAddSqlMultipleTimes * @return null */ public function testLoadSqlNoSqlExists() { $sql1 = "SELECT * FROM TABLE WHERE id=blah"; $sql2 = "SELECT * FROM TABLE WHERE id=foo"; $sql3 = "SELECT * FROM TABLE WHERE id=bar"; $sql = array($sql1, $sql2, $sql3); $this->assertFalse($this->request->isSql()); $this->assertSame($this->request, $this->request->loadSql($sql), 'must use a fluent interface'); $this->assertTrue($this->request->isSql()); $expected = "{$sql1};{$sql2};{$sql3}"; $this->assertEquals($expected, $this->request->getSql()); }