comparison vendor/sabre/vobject/tests/VObject/Property/ICalendar/CalAddressTest.php @ 7:430dbd5346f7

vendor sabre as distributed
author Charlie Root
date Sat, 13 Jan 2018 09:06:10 -0500
parents
children
comparison
equal deleted inserted replaced
6:cec75ba50afc 7:430dbd5346f7
1 <?php
2
3 namespace Sabre\VObject\Property\ICalendar;
4
5 class CalAddressTest extends \PHPUnit_Framework_TestCase {
6
7 /**
8 * @dataProvider values
9 */
10 function testGetNormalizedValue($expected, $input) {
11
12 $vobj = new \Sabre\VObject\Component\VCalendar();
13 $property = $vobj->add('ATTENDEE', $input);
14
15 $this->assertEquals(
16 $expected,
17 $property->getNormalizedValue()
18 );
19
20 }
21
22 function values() {
23
24 return array(
25 array('mailto:a@b.com', 'mailto:a@b.com'),
26 array('mailto:a@b.com', 'MAILTO:a@b.com'),
27 array('/foo/bar', '/foo/bar'),
28 );
29
30 }
31
32 }