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

ParameterTest::testParameterToString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 10
nc 1
cc 1
nop 0
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