Example #1
0
 public function testClear()
 {
     $buffer = new StringBuffer();
     $buffer->append('magna ordo terra');
     $this->assertEquals('magna ordo terra', (string) $buffer);
     $buffer->clear();
     $this->assertEquals('', (string) $buffer);
 }
Example #2
0
 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());
 }