[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/tests/ -> TestConfig.php (source)

   1  <?php
   2  # Mantis - a php based bugtracking system
   3  
   4  # Mantis is free software: you can redistribute it and/or modify
   5  # it under the terms of the GNU General Public License as published by
   6  # the Free Software Foundation, either version 2 of the License, or
   7  # (at your option) any later version.
   8  #
   9  # Mantis is distributed in the hope that it will be useful,
  10  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  # GNU General Public License for more details.
  13  #
  14  # You should have received a copy of the GNU General Public License
  15  # along with Mantis.  If not, see <http://www.gnu.org/licenses/>.
  16  
  17  /**
  18   * @package Tests
  19   * @subpackage UnitTests
  20   * @copyright Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
  21   * @copyright Copyright (C) 2002 - 2011  MantisBT Team   - mantisbt-dev@lists.sourceforge.net
  22   * @link http://www.mantisbt.org
  23   */
  24  
  25  /*
  26   * Start output buffering
  27   */
  28  ob_start();
  29  
  30  /*
  31   * Include PHPUnit dependencies
  32   */
  33  require_once 'PHPUnit/Framework.php';
  34  /*
  35   * Set error reporting to the level to which Zend Framework code must comply.
  36   */
  37  error_reporting( E_ALL | E_STRICT );
  38  
  39  /*
  40   * Determine the root, library, and tests directories of the framework
  41   * distribution.
  42   */
  43  $mantisRoot = dirname(__FILE__) . '/..';
  44  $mantisCore = "$mantisRoot/core";
  45  $mantisLibrary = "$mantisRoot/library";
  46  $mantisClasses = "$mantisRoot/core/classes";
  47  $mantisTests = "$mantisRoot/tests";
  48  
  49  
  50  /*
  51   * Prepend the application/ and tests/ directories to the
  52   * include_path.
  53   */
  54  $path = array(
  55      $mantisCore,
  56      $mantisLibrary,
  57      $mantisClasses,
  58      get_include_path()
  59      );
  60  set_include_path( implode( PATH_SEPARATOR, $path ) );
  61  
  62  
  63  /*
  64   * Unset global variables that are no longer needed.
  65   */
  66  unset($mantisRoot, $mantisLibrary, $mantisTests, $path);


Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7