Пример #1
0
 /**
  * Creates and returns this test suite
  *
  * @return PHPUnit_Framework_TestSuite
  */
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Service_Amazon');
     $suite->addTestSuite('Zend_Service_Amazon_OfflineTest');
     if (defined('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ENABLED') && constant('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ENABLED') && defined('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ACCESSKEYID')) {
         $suite->addTestSuite('Zend_Service_Amazon_OnlineTest');
     } else {
         $suite->addTestSuite('Zend_Service_Amazon_OnlineTest_Skip');
     }
     $suite->addTest(Zend_Service_Amazon_Authentication_AllTests::suite());
     $suite->addTest(Zend_Service_Amazon_Ec2_AllTests::suite());
     $suite->addTest(Zend_Service_Amazon_S3_AllTests::suite());
     $suite->addTest(Zend_Service_Amazon_SimpleDb_AllTests::suite());
     $suite->addTest(Zend_Service_Amazon_Sqs_AllTests::suite());
     return $suite;
 }
Пример #2
0
 */
class Zend_Service_Amazon_Authentication_AllTests
{
    /**
     * Runs this test suite
     *
     * @return void
     */
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    /**
     * Creates and returns this test suite
     *
     * @return PHPUnit_Framework_TestSuite
     */
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Service - Amazon - Authentication');
        if (defined('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ENABLED') && constant('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ENABLED') && defined('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ACCESSKEY') && defined('TESTS_ZEND_SERVICE_AMAZON_ONLINE_SECRETKEY')) {
            $suite->addTestSuite('Zend_Service_Amazon_Authentication_S3Test');
            $suite->addTestSuite('Zend_Service_Amazon_Authentication_V1Test');
            $suite->addTestSuite('Zend_Service_Amazon_Authentication_V2Test');
        }
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'Zend_Service_Amazon_Authentication_AllTests::main') {
    Zend_Service_Amazon_Authentication_AllTests::main();
}