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

Class: PEAR_RunTest

Source Location: /PEAR-1.5.2/PEAR/RunTest.php

Class Overview


Simplified version of PHP's test suite


Author(s):

Version:

  • Release: 1.5.2

Copyright:

  • 1997-2006 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 51]
Simplified version of PHP's test suite

Try it with:

$ php -r 'include "../PEAR/RunTest.php"; $t=new PEAR_RunTest; $o=$t->run("./pear_system.phpt");print_r($o);'



[ Top ]


Class Variables

$ini_overwrites = array(
        'output_handler=',
        'open_basedir=',
        'safe_mode=0',
        'disable_functions=',
        'output_buffering=Off',
        'display_errors=1',
        'log_errors=0',
        'html_errors=0',
        'track_errors=1',
        'report_memleaks=0',
        'report_zend_debug=0',
        'docref_root=',
        'docref_ext=.html',
        'error_prepend_string=',
        'error_append_string=',
        'auto_prepend_file=',
        'auto_append_file=',
        'magic_quotes_runtime=0',
    )

[line 55]


Type:   mixed


[ Top ]



Method Detail

PEAR_RunTest (Constructor)   [line 81]

PEAR_RunTest PEAR_RunTest( [PEAR_Common|null $logger = null], [ $options = array()])

An object that supports the PEAR_Common->log() signature, or null

Parameters:

PEAR_Common|null   $logger   — 
   $options   — 

[ Top ]

generate_diff   [line 725]

void generate_diff( $wanted, $output, $return_value, $wanted_re)


Parameters:

   $wanted   — 
   $output   — 
   $return_value   — 
   $wanted_re   — 

[ Top ]

run   [line 188]

void run( $file, [ $ini_settings = ''])


Parameters:

   $file   — 
   $ini_settings   — 

[ Top ]

save_text   [line 760]

void save_text( $filename, $text)


Parameters:

   $filename   — 
   $text   — 

[ Top ]

settings2array   [line 161]

void settings2array( $settings, $ini_settings)


Parameters:

   $settings   — 
   $ini_settings   — 

[ Top ]

settings2params   [line 174]

void settings2params( $ini_settings)


Parameters:

   $ini_settings   — 

[ Top ]

system_with_timeout   [line 100]

unknown system_with_timeout( string $commandline, [array $env = null], [string $stdin = null])

Taken from php-src/run-tests.php

Parameters:

string   $commandline   —  command name
array   $env   — 
string   $stdin   —  standard input to pass to the command

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:58:10 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.