PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_Command_Test

Source Location: /PEAR-1.10.12/PEAR/Command/Test.php

Class Overview

PEAR
   |
   --PEAR_Command_Common
      |
      --PEAR_Command_Test

PEAR commands for login/logout


Author(s):

Version:

  • Release: 1.10.12

Copyright:

  • 1997-2009 The Authors

Variables

Methods


Inherited Variables

Inherited Methods

Class: PEAR_Command_Common

PEAR_Command_Common::__construct()
PEAR_Command_Common constructor.
PEAR_Command_Common::getCommands()
Return a list of all the commands defined by this class.
PEAR_Command_Common::getGetoptArgs()
PEAR_Command_Common::getHelp()
Returns the help message for the given command
PEAR_Command_Common::getHelpArgs()
Returns the help for the accepted arguments of a command
PEAR_Command_Common::getOptions()
PEAR_Command_Common::getShortcuts()
Return a list of all the command shortcuts defined by this class.
PEAR_Command_Common::run()

Class: PEAR

PEAR::__construct()
Constructor. Registers this object in $_PEAR_destructor_object_list for destructor emulation if a destructor object exists.
PEAR::PEAR()
Only here for backwards compatibility.
PEAR::delExpect()
This method deletes all occurrences of the specified element from the expected error codes stack.
PEAR::expectError()
This method is used to tell which errors you expect to get.
PEAR::getSourceDateEpoch()
Get SOURCE_DATE_EPOCH environment variable See https://reproducible-builds.org/specs/source-date-epoch/
PEAR::getStaticProperty()
If you have a class that's mostly/entirely static, and you need static
PEAR::isError()
Tell whether a value is a PEAR error.
PEAR::loadExtension()
OS independent PHP extension load. Remember to take care on the correct extension name for case sensitive OSes.
PEAR::popExpect()
This method pops one element off the expected error codes stack.
PEAR::registerShutdownFunc()
Use this function to register a shutdown method for static classes.
PEAR::staticPopErrorHandling()
PEAR::staticPushErrorHandling()
PEAR::_PEAR()
Destructor (the emulated type of...). Does nothing right now, but is included for forward compatibility, so subclass destructors should always call it.
PEAR::_popErrorHandling()
Pop the last error handler used
PEAR::_pushErrorHandling()
Push a new error handler on top of the error handler options stack. With this you can easily override the actual error handler for some code and restore it later with popErrorHandling.
PEAR::_raiseError()
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. If the $mode and $options parameters are not specified, the object's defaults are used.
PEAR::_setErrorHandling()
Sets how errors generated by this object should be handled.
PEAR::_throwError()
Simpler form of raiseError with fewer options. In most cases message, code and userinfo are enough.
PEAR::__call()
PEAR::__callStatic()

Class Details

[line 38]
PEAR commands for login/logout


[ Top ]


Class Variables

$commands = array(
        'run-tests' => array(
            'summary' => 'Run Regression Tests',
            'function' => 'doRunTests',
            'shortcut' => 'rt',
            'options' => array(
                'recur' => array(
                    'shortopt' => 'r',
                    'doc' => 'Run tests in child directories, recursively.  4 dirs deep maximum',
                ),'ini'=>array('shortopt'=>'i','doc'=>'actual string of settings to pass to php in format " -d setting=blah"','arg'=>'SETTINGS'),'realtimelog'=>array('shortopt'=>'l','doc'=>'Log test runs/results as they are run',),'quiet'=>array('shortopt'=>'q','doc'=>'Only display detail for failed tests',),'simple'=>array('shortopt'=>'s','doc'=>'Display simple output for all tests',),'package'=>array('shortopt'=>'p','doc'=>'Treat parameters as installed packages from which to run tests',),'phpunit'=>array('shortopt'=>'u','doc'=>'Search parameters for AllTests.php, and use that to run phpunit-based tests
If none is found, all .phpt tests will be tried instead.',),'tapoutput'=>array('shortopt'=>'t','doc'=>'Output run-tests.log in TAP-compliant format',),'cgi'=>array('shortopt'=>'c','doc'=>'CGI php executable (needed for tests with POST/GET section)','arg'=>'PHPCGI',),'coverage'=>array('shortopt'=>'x','doc'=>'Generate a code coverage report (requires Xdebug 2.0.0+)',),'showdiff'=>array('shortopt'=>'d','doc'=>'Output diff on test failure',),),'doc'=>'[testfile|dir ...]
Run regression tests with PHP\'s regression testing script (run-tests.php).',),)

[line 40]


Type:   mixed


[ Top ]

$output =

[line 99]


Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 106]

PEAR_Command_Test __construct( &$ui, &$config)

PEAR_Command_Test constructor.
  • Access: public

Overrides PEAR_Command_Common::__construct() (PEAR_Command_Common constructor.)

Parameters:

   &$ui   — 
   &$config   — 

[ Top ]

doRunTests   [line 111]

void doRunTests( $command, $options, $params)


Parameters:

   $command   — 
   $options   — 
   $params   — 

[ Top ]


Documentation generated on Sun, 19 Apr 2020 14:22:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.