public function testClear() { $buffer = new StringBuffer(); $buffer->append('magna ordo terra'); $this->assertEquals('magna ordo terra', (string) $buffer); $buffer->clear(); $this->assertEquals('', (string) $buffer); }
function testSqlBufferProperty() { $db = new PixelDb(); $this->assertNotNull($db->getSqlBuffer()); $newBuffer = new StringBuffer(); $newBuffer->append('SAMPLE BUFFER'); $db->setSqlBuffer($newBuffer); $this->assertEquals('SAMPLE BUFFER', $db->getSqlString()); }