| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function testComponentWithPropertiesToString() |
||
| 26 | { |
||
| 27 | $properties = [ |
||
| 28 | Property::create('TEST', StringValue::fromString('value')), |
||
| 29 | Property::create('TEST2', StringValue::fromString('value2')), |
||
| 30 | ]; |
||
| 31 | |||
| 32 | $expected = implode(Component::LINE_SEPARATOR, [ |
||
| 33 | 'BEGIN:VEVENT', |
||
| 34 | 'TEST:value', |
||
| 35 | 'TEST2:value2', |
||
| 36 | 'END:VEVENT', |
||
| 37 | ]); |
||
| 38 | |||
| 39 | self::assertSame( |
||
| 40 | $expected, |
||
| 41 | (string)Component::create('VEVENT', $properties) |
||
| 42 | ); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |