[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/tests_runner/cli/ -> UnitCliCmd.class.php (source)

   1  <?php
   2  /*
   3   * Limb PHP Framework
   4   *
   5   * @link http://limb-project.com 
   6   * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
   7   * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
   8   */
   9  require_once(dirname(__FILE__) . '/../src/lmbTestShellUI.class.php');
  10  
  11  /**

  12   * class UnitCliCmd.

  13   *

  14   * @package tests_runner

  15   * @version $Id$

  16   */
  17  class UnitCliCmd extends lmbCliBaseCmd
  18  {
  19    function execute($argv)
  20    {
  21      set_time_limit(0);
  22      error_reporting(E_ALL);
  23  
  24      $ui = new lmbTestShellUI($argv);
  25      $ui->setPosixMode(false);
  26      return ($ui->runEmbedded() ? 0 : 1);
  27    }
  28  
  29    function help($argv)
  30    {
  31      $ui = new lmbTestShellUI($argv);
  32      echo $ui->help('unit');
  33    }
  34  }
  35  
  36  ?>


Generated: Sat Nov 22 03:48:54 2008 Cross-referenced by PHPXref 0.7