Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe CommandTester

Fonctions membres publiques

 __construct (Command $command)
 
 execute (array $input, array $options=[])
 

Attributs privés

 $command
 

Description détaillée

Eases the testing of console commands.

Auteur
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
Robin Chalas robin.nosp@m..cha.nosp@m.las@g.nosp@m.mail.nosp@m..com

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( Command  $command)

Références CommandTester\$command.

Documentation des fonctions membres

◆ execute()

execute ( array  $input,
array  $options = [] 
)

Executes the command.

Available execution options:

  • interactive: Sets the input interactive flag
  • decorated: Sets the output decorated flag
  • verbosity: Sets the output verbosity flag
  • capture_stderr_separately: Make output of stdOut and stdErr separately available
Paramètres
array$inputAn array of command arguments and options
array$optionsAn array of execution options
Renvoie
int The command exit code

Références Symfony\Component\Console\Tester\$input, $options, Symfony\Component\Console\Tester\createStream(), Symfony\Component\Console\Tester\initOutput(), et null.

Documentation des champs

◆ $command

$command
private

Référencé par CommandTester\__construct().


La documentation de cette classe a été générée à partir du fichier suivant :