cacert-testmgr/external/ZendFramework-1.9.5/tests/Zend/Feed/AllTests.php

119 lines
4.1 KiB
PHP
Raw Normal View History

<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Feed
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: AllTests.php 17363 2009-08-03 07:40:18Z bkarwin $
*/
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Zend_Feed_AllTests::main');
}
/**
* Test helper
*/
require_once dirname(__FILE__) . '/../../TestHelper.php';
/**
* Exclude from code coverage report
*/
PHPUnit_Util_Filter::addFileToFilter(__FILE__);
require_once 'Zend/Feed/ArrayAccessTest.php';
require_once 'Zend/Feed/AtomEntryOnlyTest.php';
require_once 'Zend/Feed/AtomPublishingTest.php';
require_once 'Zend/Feed/CountTest.php';
require_once 'Zend/Feed/ElementTest.php';
require_once 'Zend/Feed/ImportTest.php';
require_once 'Zend/Feed/IteratorTest.php';
require_once 'Zend/Feed/Entry/RssTest.php';
require_once 'Zend/Feed/ReaderTest.php';
require_once 'Zend/Feed/Reader/Feed/RssTest.php';
require_once 'Zend/Feed/Reader/Entry/RssTest.php';
require_once 'Zend/Feed/Reader/Feed/AtomTest.php';
require_once 'Zend/Feed/Reader/Entry/AtomTest.php';
require_once 'Zend/Feed/Reader/Feed/CommonTest.php';
require_once 'Zend/Feed/Reader/Entry/CommonTest.php';
require_once 'Zend/Feed/Reader/Integration/WordpressRss2DcAtomTest.php';
require_once 'Zend/Feed/Reader/Integration/WordpressAtom10Test.php';
require_once 'Zend/Feed/Reader/Integration/LautDeRdfTest.php';
require_once 'Zend/Feed/Reader/Integration/H-OnlineComAtom10Test.php';
/**
* @category Zend
* @package Zend_Feed
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Feed
*/
class Zend_Feed_AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Feed');
$suite->addTestSuite('Zend_Feed_ArrayAccessTest');
$suite->addTestSuite('Zend_Feed_AtomEntryOnlyTest');
$suite->addTestSuite('Zend_Feed_AtomPublishingTest');
$suite->addTestSuite('Zend_Feed_CountTest');
$suite->addTestSuite('Zend_Feed_ElementTest');
$suite->addTestSuite('Zend_Feed_ImportTest');
$suite->addTestSuite('Zend_Feed_IteratorTest');
$suite->addTestSuite('Zend_Feed_Entry_RssTest');
/* Zend_Feed_Reader tests */
// Base parent class
$suite->addTestSuite('Zend_Feed_ReaderTest');
// RSS - Feed Level
$suite->addTestSuite('Zend_Feed_Reader_Feed_RssTest');
// RSS - Item Level
$suite->addTestSuite('Zend_Feed_Reader_Entry_RssTest');
// ATOM - Feed Level
$suite->addTestSuite('Zend_Feed_Reader_Feed_AtomTest');
// ATOM - Item Level
$suite->addTestSuite('Zend_Feed_Reader_Entry_AtomTest');
// COMMON - Feed Level
$suite->addTestSuite('Zend_Feed_Reader_Feed_CommonTest');
// COMMON - Entry Level
$suite->addTestSuite('Zend_Feed_Reader_Entry_CommonTest');
/**
* Real World Feed Tests
*/
$suite->addTestSuite('Zend_Feed_Reader_Integration_WordpressRss2DcAtomTest');
$suite->addTestSuite('Zend_Feed_Reader_Integration_WordpressAtom10Test');
$suite->addTestSuite('Zend_Feed_Reader_Integration_LautDeRdfTest');
$suite->addTestSuite('Zend_Feed_Reader_Integration_HOnlineComAtom10Test');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Zend_Feed_AllTests::main') {
Zend_Feed_AllTests::main();
}