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.
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_Json_AllTests::main');
29 require_once 'Zend/Json/JsonXMLTest.php';
30 require_once 'Zend/Json/ServerTest.php';
31 require_once 'Zend/Json/Server/AllTests.php';
36 * @subpackage UnitTests
37 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
38 * @license http://framework.zend.com/license/new-bsd New BSD License
41 class Zend_Json_AllTests
43 public static function main()
45 PHPUnit_TextUI_TestRunner
::run(self
::suite());
48 public static function suite()
50 $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Json');
52 $suite->addTestSuite('Zend_Json_JsonXMLTest');
53 $suite->addTestSuite('Zend_Json_ServerTest');
54 $suite->addTest(Zend_Json_Server_AllTests
::suite());
60 if (PHPUnit_MAIN_METHOD
== 'Zend_Json_AllTests::main') {
61 Zend_Json_AllTests
::main();