PageRenderTime 72ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 17ms app.codeStats 11ms

/tests/Zend/Log/Writer/AllTests.php

https://bitbucket.org/ksekar/campus
PHP | 77 lines | 41 code | 7 blank | 29 comment | 7 complexity | ac75fc14d9a0f92594ad523d097c2722 MD5 | raw file
 1<?php
 2/**
 3 * Zend Framework
 4 *
 5 * LICENSE
 6 *
 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.
14 *
15 * @category   Zend
16 * @package    Zend_Log
17 * @subpackage UnitTests
18 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: AllTests.php 24594 2012-01-05 21:27:01Z matthew $
21 */
22
23if (!defined('PHPUnit_MAIN_METHOD')) {
24    define('PHPUnit_MAIN_METHOD', 'Zend_Log_Writer_AllTests::main');
25}
26
27require_once 'Zend/Log/Writer/AbstractTest.php';
28require_once 'Zend/Log/Writer/DbTest.php';
29if (PHP_OS != 'AIX') {
30    require_once 'Zend/Log/Writer/FirebugTest.php';
31}
32require_once 'Zend/Log/Writer/MailTest.php';
33require_once 'Zend/Log/Writer/MockTest.php';
34require_once 'Zend/Log/Writer/NullTest.php';
35require_once 'Zend/Log/Writer/StreamTest.php';
36require_once 'Zend/Log/Writer/SyslogTest.php';
37require_once 'Zend/Log/Writer/ZendMonitorTest.php';
38
39/**
40 * @category   Zend
41 * @package    Zend_Log
42 * @subpackage UnitTests
43 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
44 * @license    http://framework.zend.com/license/new-bsd     New BSD License
45 * @group      Zend_Log
46 * @group      Zend_Log_Writer
47 */
48class Zend_Log_Writer_AllTests
49{
50    public static function main()
51    {
52        PHPUnit_TextUI_TestRunner::run(self::suite());
53    }
54
55    public static function suite()
56    {
57        $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Log_Writer');
58
59        $suite->addTestSuite('Zend_Log_Writer_AbstractTest');
60        $suite->addTestSuite('Zend_Log_Writer_DbTest');
61        if (PHP_OS != 'AIX') {
62            $suite->addTestSuite('Zend_Log_Writer_FirebugTest');
63        }
64        $suite->addTestSuite('Zend_Log_Writer_MailTest');
65        $suite->addTestSuite('Zend_Log_Writer_MockTest');
66        $suite->addTestSuite('Zend_Log_Writer_NullTest');
67        $suite->addTestSuite('Zend_Log_Writer_StreamTest');
68        $suite->addTestSuite('Zend_Log_Writer_SyslogTest');
69        $suite->addTestSuite('Zend_Log_Writer_ZendMonitorTest');
70
71        return $suite;
72    }
73}
74
75if (PHPUnit_MAIN_METHOD == 'Zend_Log_Writer_AllTests::main') {
76    Zend_Log_Writer_AllTests::main();
77}