![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct ($logger=null, $options=array()) | |
| _preparePhpBin ($php, $file, $ini_settings) | |
| iniString2array ($ini_string) | |
| run ($file, $ini_settings=array(), $test_number=1) | |
| runPHPUnit ($file, $ini_settings='') | |
| settings2array ($settings, $ini_settings) | |
| settings2params ($ini_settings) | |
| system_with_timeout ($commandline, $env=null, $stdin=null) | |
Data Fields | |
| $_headers = array() | |
| $_logger | |
| $_options | |
| $_php | |
| $_savephp | |
| $ini_overwrites | |
| $tests_count | |
| $xdebug_loaded | |
Definition at line 44 of file RunTest.php.
| __construct | ( | $logger = null, | |
| $options = array() ) |
An object that supports the PEAR_Common->log() signature, or null
| PEAR_Common|null |
Definition at line 82 of file RunTest.php.
References $options.
| _preparePhpBin | ( | $php, | |
| $file, | |||
| $ini_settings ) |
Definition at line 226 of file RunTest.php.
Referenced by run(), and runPHPUnit().
| iniString2array | ( | $ini_string | ) |
Turns a PHP INI string into an array
Turns -d "include_path=/foo/bar" into this: array( 'include_path' => array( 'operator' => '-d', 'value' => '/foo/bar', ) ) Works both with quotes and without
| string | an PHP INI string, -d "include_path=/foo/bar" |
Definition at line 184 of file RunTest.php.
Referenced by run().
| run | ( | $file, | |
| $ini_settings = array(), | |||
| $test_number = 1 ) |
Runs an individual test case.
| string | The filename of the test |
| array|string | INI settings to be applied to the test run |
| integer | Number what the current running test is of the whole test suite being runned. |
Definition at line 266 of file RunTest.php.
References _cleanupOldFiles(), _preparePhpBin(), _processHeaders(), _processUpload(), _readFile(), _resetEnv(), _restorePHPBinary(), _runSkipIf(), _savePHPBinary(), _stripHeadersCGI(), _testCleanup(), _writeLog(), generate_diff(), iniString2array(), save_text(), settings2array(), settings2params(), and system_with_timeout().
| runPHPUnit | ( | $file, | |
| $ini_settings = '' ) |
Definition at line 234 of file RunTest.php.
References _preparePhpBin().
| settings2array | ( | $settings, | |
| $ini_settings ) |
Definition at line 197 of file RunTest.php.
Referenced by run().
| settings2params | ( | $ini_settings | ) |
Definition at line 210 of file RunTest.php.
Referenced by run().
| system_with_timeout | ( | $commandline, | |
| $env = null, | |||
| $stdin = null ) |
Taken from php-src/run-tests.php
| string | $commandline | command name |
| array | $env | |
| string | $stdin | standard input to pass to the command |
Definition at line 117 of file RunTest.php.
References $proc.
Referenced by _runSkipIf(), _testCleanup(), and run().
| $_headers = array() |
Definition at line 46 of file RunTest.php.
| $_logger |
Definition at line 47 of file RunTest.php.
| $_options |
Definition at line 48 of file RunTest.php.
| $_php |
Definition at line 49 of file RunTest.php.
Referenced by _savePHPBinary().
| $_savephp |
Definition at line 58 of file RunTest.php.
Referenced by _restorePHPBinary().
| $ini_overwrites |
Definition at line 59 of file RunTest.php.
| $tests_count |
Definition at line 50 of file RunTest.php.
| $xdebug_loaded |
Definition at line 51 of file RunTest.php.