/usr/share/php/tests/Horde_Mime/Horde/Mime/MagicTest.php is in php-horde-mime 2.2.8-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 | <?php
/**
* Tests for the Horde_Mime_Magic class.
*
* Copyright 2010-2013 Horde LLC (http://www.horde.org/)
*
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Mime
* @subpackage UnitTests
*/
/**
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Mime
* @subpackage UnitTests
*/
class Horde_Mime_MagicTest extends PHPUnit_Framework_TestCase
{
public function testBug325()
{
if (!extension_loaded('fileinfo')) {
$this->markTestSkipped('The fileinfo extension is not available.');
}
$this->assertEquals(
'text/plain',
Horde_Mime_Magic::analyzeFile(__DIR__ . '/fixtures/flowed_msg.txt')
);
}
}
|