Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
tool_phpunit

Namespaces

namespace  tool_phpunit\privacy
  
 

Classes

class  tool_phpunit\privacy\provider
 Privacy Subsystem for tool_phpunit implementing null_provider. More...
 

Variables

 $buildcomponentconfigs = $options['buildcomponentconfigs']
 
 $buildconfig = $options['buildconfig']
 
if($unrecognized) $diag = $options['diag']
 
 $drop = $options['drop']
 
 $help
 
 $install = $options['install']
 
 $output = null
 
 $plugin = 2022111800
 
$plugin component = 'tool_phpunit'
 
if($code==0) else if( $code==PHPUNIT_EXITCODE_INSTALL) else if($code==PHPUNIT_EXITCODE_REINSTALL) else
 
 if (!empty( $options[ 'help']))
 
const IGNORE_COMPONENT_CACHE (function_exists('opcache_reset')) true
 
const IGNORE_COMPONENT_CACHE (isset($_SERVER['REMOTE_ADDR'])) true
 
const PHPUNIT_UTIL ($options['run']) true
 
$plugin version = 2022112800
 

Detailed Description

Variable Documentation

◆ $help

$help
Initial value:
= "
Utilities to initialise the PHPUnit test site.
Usage:
php init.php [--no-composer-self-update] [--no-composer-upgrade]
[--help]
--no-composer-self-update
Prevent upgrade of the composer utility using its self-update command
--no-composer-upgrade
Prevent update development dependencies using composer
--disable-composer
A shortcut to disable composer self-update and dependency update
Note: Installation of composer and/or dependencies will still happen as required
-h, --help Print out this help
Example from Moodle root directory:
$ php admin/tool/phpunit/cli/init.php
"

◆ else

if( $code==0) else if($code==PHPUNIT_EXITCODE_INSTALL) else if ( $code==PHPUNIT_EXITCODE_REINSTALL) else
Initial value:
{
echo implode("\n", $output)."\n"