/usr/share/php/tests/Horde_Url/Horde/Url/CallbackTest.php is in php-horde-url 2.2.1-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 | <?php
/**
* @author Michael Slusarz <slusarz@horde.org>
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @category Horde
* @package Url
* @subpackage UnitTests
*/
class Horde_Url_CallbackTest extends PHPUnit_Framework_TestCase
{
public function testRemoveRaw()
{
$url = new Horde_Url('test?bar=2');
$url->toStringCallback = array($this, 'callbackToString');
$this->assertEquals('FOOtest?bar=2BAR', (string)$url);
}
public function callbackToString($url)
{
return 'FOO' . (string)$url . 'BAR';
}
}
|