| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | public function testBuildString() |
||
| 10 | { |
||
| 11 | $string = \OneSheet\CellHelper::buildString(33, 44, "987456"); |
||
| 12 | $this->assertEquals('<c r="AS33" s="0"><v>987456</v></c>', $string); |
||
| 13 | |||
| 14 | $string = \OneSheet\CellHelper::buildString(77, 2222, "some text", 2); |
||
| 15 | $this->assertEquals('<c r="CGM77" s="2" t="inlineStr"><is><t>some text</t></is></c>', $string); |
||
| 16 | |||
| 17 | $string = \OneSheet\CellHelper::buildString(1, 0, "this & that", 1); |
||
| 18 | $this->assertEquals('<c r="A1" s="1" t="inlineStr"><is><t>this & that</t></is></c>', $string); |
||
| 19 | } |
||
| 20 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.