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

TestCellHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 2
dl 0
loc 14
rs 10
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
}