/usr/share/php/tests/Horde_Url/Horde/Url/LinkTest.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 | <?php
/**
* @author Jan Schneider <jan@horde.org>
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @category Horde
* @package Url
* @subpackage UnitTests
*/
class Horde_Url_LinkTest extends PHPUnit_Framework_TestCase
{
public function testLink()
{
$url = new Horde_Url('test', true);
$url->add(array('foo' => 1, 'bar' => 2));
$this->assertEquals('test?foo=1&bar=2', (string)$url);
$this->assertEquals('<a href="test?foo=1&bar=2">', $url->link());
$this->assertEquals('<a href="test?foo=1&bar=2" title="foo&bar">', $url->link(array('title' => 'foo&bar')));
$this->assertEquals('<a href="test?foo=1&bar=2" title="foo&bar">', $url->link(array('title.raw' => 'foo&bar')));
}
}
|