/** * 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_Ec2_AllTests::suite()); $suite->addTest(Zend_Service_Amazon_S3_AllTests::suite()); $suite->addTest(Zend_Service_Amazon_Sqs_AllTests::suite()); return $suite; }
public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } /** * Constructs the test suite handler. */ public function __construct() { } /** * Creates the suite. */ public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Service_Amazon_Ec2'); $suite->addTestSuite('Zend_Service_Amazon_Ec2_AvailabilityzonesTest'); $suite->addTestSuite('Zend_Service_Amazon_Ec2_EbsTest'); $suite->addTestSuite('Zend_Service_Amazon_Ec2_Ec2Test'); $suite->addTestSuite('Zend_Service_Amazon_Ec2_ElasticipTest'); $suite->addTestSuite('Zend_Service_Amazon_Ec2_ImageTest'); $suite->addTestSuite('Zend_Service_Amazon_Ec2_InstanceTest'); $suite->addTestSuite('Zend_Service_Amazon_Ec2_KeypairTest'); $suite->addTestSuite('Zend_Service_Amazon_Ec2_RegionTest'); $suite->addTestSuite('Zend_Service_Amazon_Ec2_SecuritygroupsTest'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'Zend_Service_Amazon_Ec2_AllTests::main') { Zend_Service_Amazon_Ec2_AllTests::main(); }