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

RowHelperTest::testBuildRow()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
class RowHelperTest extends PHPUnit_Framework_TestCase
4
{
5
    public function testBuildRow()
6
    {
7
        $string = '<row r="1" spans="1:3"><c r="A1" s="0" t="inlineStr"><is><t>123.321</t></is></c><c r="B1" s="0"><v>123</v></c><c r="C1" s="0" t="inlineStr"><is><t>cool &amp; quiet</t></is></c></row>';
8
        $data = array('123.321', 123, 'cool & quiet');
9
        $this->assertEquals($string, \OneSheet\RowHelper::buildRow($data));
10
    }
11
}
12