/usr/share/php/tests/turba/Turba/ToDo/bug_6518.phpt is in php-horde-turba 4.1.3-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 28 29 30 31 32 33 34 35 36 37 38 39 | --TEST--
Data_ldif: Bug #6518
--SKIPIF--
<?php die('Skip Convert to PHPUnit/Horde_Test.'); ?>
--FILE--
<?php
if (defined('E_DEPRECATED')) {
error_reporting(E_ALL & ~constant('E_DEPRECATED'));
} else {
error_reporting(E_ALL);
}
require 'Horde.php';
require 'Horde/Data.php';
require __DIR__ . '/../Data/ldif.php';
$ldif = new Horde_Data_ldif();
$data = array(array('firstname' => 'John',
'lastname' => 'Püblic',
'name' => 'John Püblic',
'email' => 'john@example.com'),
);
echo $ldif->exportData($data, false) . "\n";
?>
--EXPECT--
dn:: Y249Sm9obiBQw7xibGljLG1haWw9am9obkBleGFtcGxlLmNvbQ==
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonAlpha
cn:: Sm9obiBQw7xibGlj
givenName: John
sn:: UMO8YmxpYw==
mail: john@example.com
modifytimestamp: 0Z
|