Exemplo n.º 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');
     $suite->addTestSuite('Zend_Service_AkismetTest');
     $suite->addTest(Zend_Service_Amazon_AllTests::suite());
     $suite->addTest(Zend_Service_Audioscrobbler_AllTests::suite());
     $suite->addTest(Zend_Service_Delicious_AllTests::suite());
     $suite->addTest(Zend_Service_DeveloperGarden_AllTests::suite());
     $suite->addTest(Zend_Service_Flickr_AllTests::suite());
     $suite->addTest(Zend_Service_LiveDocx_AllTests::suite());
     $suite->addTest(Zend_Service_Nirvanix_AllTests::suite());
     $suite->addTest(Zend_Service_ReCaptcha_AllTests::suite());
     $suite->addTest(Zend_Service_Simpy_AllTests::suite());
     $suite->addTestSuite('Zend_Service_SlideShareTest');
     $suite->addTest(Zend_Service_StrikeIron_AllTests::suite());
     $suite->addTest(Zend_Service_Technorati_AllTests::suite());
     $suite->addTest(Zend_Service_Twitter_AllTests::suite());
     $suite->addTest(Zend_Service_WindowsAzure_AllTests::suite());
     $suite->addTest(Zend_Service_Yahoo_AllTests::suite());
     return $suite;
 }
Exemplo n.º 2
0
{
    /**
     * 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_ReCaptcha');
        if (defined('TESTS_ZEND_SERVICE_RECAPTCHA_ENABLED') && constant('TESTS_ZEND_SERVICE_RECAPTCHA_ENABLED') && defined('TESTS_ZEND_SERVICE_RECAPTCHA_PUBLIC_KEY') && defined('TESTS_ZEND_SERVICE_RECAPTCHA_PRIVATE_KEY')) {
            $suite->addTestSuite('Zend_Service_ReCaptcha_ReCaptchaTest');
            $suite->addTestSuite('Zend_Service_ReCaptcha_ResponseTest');
        }
        if (defined('TESTS_ZEND_SERVICE_RECAPTCHA_ENABLED') && constant('TESTS_ZEND_SERVICE_RECAPTCHA_ENABLED') && defined('TESTS_ZEND_SERVICE_RECAPTCHA_MAILHIDE_PUBLIC_KEY') && defined('TESTS_ZEND_SERVICE_RECAPTCHA_MAILHIDE_PRIVATE_KEY')) {
            $suite->addTestSuite('Zend_Service_ReCaptcha_MailHideTest');
        }
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'Zend_Service_ReCaptcha_AllTests::main') {
    Zend_Service_ReCaptcha_AllTests::main();
}
Exemplo n.º 3
0
 /**
  * Creates and returns this test suite
  *
  * @return PHPUnit_Framework_TestSuite
  */
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Service');
     $suite->addTestSuite('Zend_Service_AkismetTest');
     $suite->addTest(Zend_Service_Amazon_AllTests::suite());
     $suite->addTest(Zend_Service_Audioscrobbler_AllTests::suite());
     $suite->addTest(Zend_Service_Delicious_AllTests::suite());
     $suite->addTest(Zend_Service_Flickr_AllTests::suite());
     $suite->addTest(Zend_Service_Nirvanix_AllTests::suite());
     $suite->addTest(Zend_Service_ReCaptcha_AllTests::suite());
     if (defined('TESTS_ZEND_SERVICE_SIMPY_ENABLED') && constant('TESTS_ZEND_SERVICE_SIMPY_ENABLED')) {
         $suite->addTestSuite('Zend_Service_SimpyTest');
     } else {
         $suite->addTestSuite('Zend_Service_SimpyTest_Skip');
     }
     $suite->addTestSuite('Zend_Service_SlideShareTest');
     $suite->addTest(Zend_Service_StrikeIron_AllTests::suite());
     $suite->addTest(Zend_Service_Technorati_AllTests::suite());
     $suite->addTest(Zend_Service_Yahoo_AllTests::suite());
     return $suite;
 }