7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
16 * @package Zend_Captcha
17 * @subpackage UnitTests
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
23 require_once dirname(dirname(dirname(__FILE__
))) . DIRECTORY_SEPARATOR
. 'TestHelper.php';
25 if (!defined('PHPUnit_MAIN_METHOD')) {
26 define('PHPUnit_MAIN_METHOD', 'Zend_Captcha_AllTests::main');
29 require_once 'Zend/Captcha/DumbTest.php';
30 require_once 'Zend/Captcha/FigletTest.php';
31 require_once 'Zend/Captcha/ImageTest.php';
32 require_once 'Zend/Captcha/ReCaptchaTest.php';
36 * @package Zend_Captcha
37 * @subpackage UnitTests
38 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
39 * @license http://framework.zend.com/license/new-bsd New BSD License
42 class Zend_Captcha_AllTests
44 public static function main()
46 PHPUnit_TextUI_TestRunner
::run(self
::suite());
49 public static function suite()
51 $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Captcha');
53 $suite->addTestSuite('Zend_Captcha_DumbTest');
54 $suite->addTestSuite('Zend_Captcha_FigletTest');
55 $suite->addTestSuite('Zend_Captcha_ImageTest');
56 $suite->addTestSuite('Zend_Captcha_ReCaptchaTest');
62 if (PHPUnit_MAIN_METHOD
== 'Zend_Captcha_AllTests::main') {
63 Zend_Captcha_AllTests
::main();