Beispiel #1
0
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Http');
     $suite->addTestSuite('Zend_Http_ResponseTest');
     $suite->addTestSuite('Zend_Http_CookieTest');
     $suite->addTestSuite('Zend_Http_CookieJarTest');
     $suite->addTest(Zend_Http_Client_AllTests::suite());
     $suite->addTest(Zend_Http_UserAgent_AllTests::suite());
     return $suite;
 }
Beispiel #2
0
require_once 'Zend/Http/UserAgent/Features/Adapter/BrowscapTest.php';
require_once 'Zend/Http/UserAgent/Features/Adapter/DeviceAtlasTest.php';
require_once 'Zend/Http/UserAgent/Features/Adapter/TeraWurflTest.php';
/**
 * @category   Zend
 * @package    Zend_Http
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @group      Zend_Http
 */
class Zend_Http_UserAgent_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Http - UserAgent');
        $suite->addTestSuite('Zend_Http_UserAgentTest');
        $suite->addTestSuite('Zend_Http_UserAgent_AbstractDeviceTest');
        $suite->addTestSuite('Zend_Http_UserAgent_Features_Adapter_BrowscapTest');
        $suite->addTestSuite('Zend_Http_UserAgent_Features_Adapter_DeviceAtlasTest');
        $suite->addTestSuite('Zend_Http_UserAgent_Features_Adapter_TeraWurflTest');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'Zend_Http_UserAgent_AllTests::main') {
    Zend_Http_UserAgent_AllTests::main();
}