Completed
Push — master ( a22eda...4515d3 )
by Stefan
02:37
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 Method

Rating   Name   Duplication   Size   Complexity  
A testBuildRow() 0 6 1
1
<?php
2
3
class RowHelperTest extends PHPUnit_Framework_TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
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