1<?php
2
3namespace Sabre\VObject\Property\ICalendar;
4
5class 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}
33