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_InfoCard
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_InfoCard_AllTests::main');
29 require_once 'Zend/InfoCard/XmlParsingTest.php';
30 require_once 'Zend/InfoCard/ProcessTest.php';
31 require_once 'Zend/InfoCard/AssertionTest.php';
32 require_once 'Zend/InfoCard/CipherTest.php';
36 * @package Zend_InfoCard
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
40 * @group Zend_InfoCard
42 class Zend_InfoCard_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_InfoCard");
53 if(extension_loaded('openssl')) {
54 $suite->addTestSuite('Zend_InfoCard_AssertionTest');
55 $suite->addTestSuite('Zend_InfoCard_ProcessTest');
56 $suite->addTestSuite('Zend_InfoCard_XmlParsingTest');
57 $suite->addTestSuite('Zend_InfoCard_CipherTest');
64 if (PHPUnit_MAIN_METHOD
== 'Zend_InfoCard_AllTests::main') {
65 Zend_InfoCard_AllTests
::main();