Completed
Push — master ( cb8d9e...ee4360 )
by Stefan
03:12
created

TestCellHelper::testBuildString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 11
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
class TestCellHelper extends PHPUnit_Framework_TestCase
4
{
5
    public function testBuildString()
6
    {
7
        $string = \OneSheet\CellHelper::buildString(33, 44, "987456");
8
        $this->assertEquals('<c r="AS33" s="0"><v>987456</v></c>', $string);
9
10
        $string = \OneSheet\CellHelper::buildString(77, 2222, "some text", 2);
11
        $this->assertEquals('<c r="CGM77" s="2" t="inlineStr"><is><t>some text</t></is></c>', $string);
12
13
        $string = \OneSheet\CellHelper::buildString(1, 0, "this & that", 1);
14
        $this->assertEquals('<c r="A1" s="1" t="inlineStr"><is><t>this &amp; that</t></is></c>', $string);
15
    }
16
}