CalAddressTest.php 661 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Sabre\VObject\Property\ICalendar;
  3. class CalAddressTest extends \PHPUnit_Framework_TestCase {
  4. /**
  5. * @dataProvider values
  6. */
  7. function testGetNormalizedValue($expected, $input) {
  8. $vobj = new \Sabre\VObject\Component\VCalendar();
  9. $property = $vobj->add('ATTENDEE', $input);
  10. $this->assertEquals(
  11. $expected,
  12. $property->getNormalizedValue()
  13. );
  14. }
  15. function values() {
  16. return array(
  17. array('mailto:a@b.com', 'mailto:a@b.com'),
  18. array('mailto:a@b.com', 'MAILTO:a@b.com'),
  19. array('/foo/bar', '/foo/bar'),
  20. );
  21. }
  22. }