~clinton-collins/familyproject/trunk

« back to all changes in this revision

Viewing changes to ZendFramework/tests/Zend/Service/Delicious/AllTests.php

  • Committer: Clinton Collins
  • Date: 2009-06-26 19:54:58 UTC
  • Revision ID: clinton.collins@gmail.com-20090626195458-5ebba0qcvo15xlpy
Initial Import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/**
 
4
 * Zend Framework
 
5
 *
 
6
 * LICENSE
 
7
 *
 
8
 * This source file is subject to the new BSD license that is bundled
 
9
 * with this package in the file LICENSE.txt.
 
10
 * It is also available through the world-wide-web at this URL:
 
11
 * http://framework.zend.com/license/new-bsd
 
12
 * If you did not receive a copy of the license and are unable to
 
13
 * obtain it through the world-wide-web, please send an email
 
14
 * to license@zend.com so we can send you a copy immediately.
 
15
 *
 
16
 * @category   Zend
 
17
 * @package    Zend_Service_Delicious
 
18
 * @subpackage UnitTests
 
19
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
20
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
21
 * @version    $Id: AllTests.php 11973 2008-10-15 16:00:56Z matthew $
 
22
 */
 
23
 
 
24
 
 
25
if (!defined('PHPUnit_MAIN_METHOD')) {
 
26
    define('PHPUnit_MAIN_METHOD', 'Zend_Service_Delicious_AllTests::main');
 
27
}
 
28
 
 
29
/**
 
30
 * Test helper
 
31
 */
 
32
require_once dirname(__FILE__) . '/../../../TestHelper.php';
 
33
 
 
34
/**
 
35
 * Exclude from code coverage report
 
36
 */
 
37
PHPUnit_Util_Filter::addFileToFilter(__FILE__);
 
38
 
 
39
 
 
40
/**
 
41
 * @category   Zend
 
42
 * @package    Zend_Service_Delicious
 
43
 * @subpackage UnitTests
 
44
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
45
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
46
 */
 
47
class Zend_Service_Delicious_AllTests
 
48
{
 
49
    /**
 
50
     * Runs this test suite
 
51
     *
 
52
     * @return void
 
53
     */
 
54
    public static function main()
 
55
    {
 
56
        PHPUnit_TextUI_TestRunner::run(self::suite());
 
57
    }
 
58
 
 
59
    /**
 
60
     * Creates and returns this test suite
 
61
     *
 
62
     * @return PHPUnit_Framework_TestSuite
 
63
     */
 
64
    public static function suite()
 
65
    {
 
66
        $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Service_Delicious');
 
67
 
 
68
        if (!defined('TESTS_ZEND_SERVICE_DELICIOUS_ENABLED') ||
 
69
            !constant('TESTS_ZEND_SERVICE_DELICIOUS_ENABLED')) {
 
70
 
 
71
            /**
 
72
             * @see Zend_Service_Delicious_SkipTests
 
73
             */
 
74
            require_once 'Zend/Service/Delicious/SkipTests.php';
 
75
            $suite->addTestSuite('Zend_Service_Delicious_SkipTests');
 
76
 
 
77
        } else {
 
78
 
 
79
            /**
 
80
             * @see Zend_Service_Delicious_PublicDataTest
 
81
             */
 
82
            require_once 'Zend/Service/Delicious/PublicDataTest.php';
 
83
            $suite->addTestSuite('Zend_Service_Delicious_PublicDataTest');
 
84
 
 
85
            /**
 
86
             * @see Zend_Service_Delicious_PrivateDataTest
 
87
             */
 
88
            require_once 'Zend/Service/Delicious/PrivateDataTest.php';
 
89
            $suite->addTestSuite('Zend_Service_Delicious_PrivateDataTest');
 
90
        }
 
91
 
 
92
        /**
 
93
         * @see Zend_Service_Delicious_SimplePostTest
 
94
         */
 
95
        require_once 'Zend/Service/Delicious/SimplePostTest.php';
 
96
        $suite->addTestSuite('Zend_Service_Delicious_SimplePostTest');
 
97
 
 
98
        /**
 
99
         * @see Zend_Service_Delicious_PostTest
 
100
         */
 
101
        require_once 'Zend/Service/Delicious/PostTest.php';
 
102
        $suite->addTestSuite('Zend_Service_Delicious_PostTest');
 
103
 
 
104
        return $suite;
 
105
    }
 
106
}
 
107
 
 
108
 
 
109
if (PHPUnit_MAIN_METHOD == 'Zend_Service_Delicious_AllTests::main') {
 
110
    Zend_Service_Delicious_AllTests::main();
 
111
}