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

RowHelperTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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