Page MenuHomePhabricator

CalAddressTest.php
No OneTemporary

CalAddressTest.php

<?php
namespace Sabre\VObject\Property\ICalendar;
class CalAddressTest extends \PHPUnit_Framework_TestCase {
/**
* @dataProvider values
*/
function testGetNormalizedValue($expected, $input) {
$vobj = new \Sabre\VObject\Component\VCalendar();
$property = $vobj->add('ATTENDEE', $input);
$this->assertEquals(
$expected,
$property->getNormalizedValue()
);
}
function values() {
return array(
array('mailto:a@b.com', 'mailto:a@b.com'),
array('mailto:a@b.com', 'MAILTO:a@b.com'),
array('/foo/bar', '/foo/bar'),
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jan 7, 3:14 PM (2 d, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
916872
Default Alt Text
CalAddressTest.php (661 B)

Event Timeline