Completed
Pull Request — master (#144)
by Markus
02:45 queued 01:47
created

ParameterTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 8
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testParameterToString() 0 5 1
1
<?php
2
3
namespace Eluceo\iCal\Test\Unit\Presentation\Component\Property;
4
5
use Eluceo\iCal\Presentation\Component\Property\Parameter;
6
use Eluceo\iCal\Presentation\Component\Property\Value\StringValue;
7
use PHPUnit\Framework\TestCase;
8
9
class ParameterTest extends TestCase
10
{
11
    public function testParameterToString()
12
    {
13
        $parameter = Parameter::create('TEST', StringValue::fromString('lorem ipsum'));
14
        self::assertSame('TEST=lorem ipsum', (string)$parameter);
15
    }
16
}
17