/usr/share/php/tests/Horde_Feed/Horde/Feed/AtomEntryOnlyTest.php is in php-horde-feed 2.0.1-4.
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 | <?php
/**
* @category Horde
* @package Feed
* @subpackage UnitTests
*/
class Horde_Feed_AtomEntryOnlyTest extends PHPUnit_Framework_TestCase {
public function testEntryOnly()
{
$feed = Horde_Feed::readFile(__DIR__ . '/fixtures/TestAtomFeedEntryOnly.xml');
$this->assertEquals(1, $feed->count(), 'The entry-only feed should report one entry.');
foreach ($feed as $entry);
$this->assertEquals('Horde_Feed_Entry_Atom', get_class($entry), 'The single entry should be an instance of Horde_Feed_Entry_Atom');
$this->assertEquals('1', $entry->id(), 'The single entry should have id 1');
$this->assertEquals('Bug', $entry->title(), 'The entry\'s title should be "Bug"');
}
}
|