Beispiel #1
0
 public function testBuild()
 {
     $cellBuilder = new CellBuilder();
     $expectedXml = '<c r="D1" s="0" t="inlineStr"><is><t>Something</t></is></c>';
     $this->assertEquals($expectedXml, $cellBuilder->build(1, 3, 'Something'));
     $expectedXml = '<c r="D1" s="0" t="inlineStr"><is><t>_x0003_</t></is></c>';
     $this->assertEquals($expectedXml, $cellBuilder->build(1, 3, chr(3)));
 }
Beispiel #2
0
 /**
  * Return <dimension> xml string.
  *
  * @return string
  */
 public function getDimensionXml()
 {
     return sprintf(SheetXml::DIMENSION_XML, $this->cellBuilder->getCellId($this->maxColumnCount - 1, $this->rowIndex - 1));
 }