Completed
Pull Request — master (#144)
by Markus
01:01
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
/*
4
 * This file is part of the eluceo/iCal package.
5
 *
6
 * (c) 2019 Markus Poerschke <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Eluceo\iCal\Test\Unit\Presentation\Component\Property;
13
14
use Eluceo\iCal\Presentation\Component\Property\Parameter;
15
use Eluceo\iCal\Presentation\Component\Property\Value\TextValue;
16
use PHPUnit\Framework\TestCase;
17
18
class ParameterTest extends TestCase
19
{
20
    public function testParameterToString()
21
    {
22
        $parameter = Parameter::create('TEST', TextValue::fromString('lorem ipsum'));
23
        self::assertSame('TEST=lorem ipsum', (string) $parameter);
24
    }
25
}
26