/usr/share/php/tests/Horde_Icalendar/Horde/Icalendar/CharsetTest.php is in php-horde-icalendar 2.0.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | <?php
/**
* @category Horde
* @package Icalendar
* @subpackage UnitTests
*/
/**
* @category Horde
* @package Icalendar
* @subpackage UnitTests
*/
class Horde_Icalendar_CharsetTest extends Horde_Test_Case
{
public function testFiles()
{
$test_files = glob(__DIR__ . '/fixtures/charset*.ics');
foreach ($test_files as $file) {
$ical = new Horde_Icalendar();
$ical->parsevCalendar(file_get_contents($file));
$this->assertEquals(
'möchen',
$ical->getComponent(0)->getAttribute('SUMMARY')
);
}
}
}
|