Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • ApplicationTester
  • CommandTester
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class CommandTester

Eases the testing of console commands.

Namespace: Symfony\Component\Console\Tester
Author: Fabien Potencier <fabien@symfony.com>
Located at console/Symfony/Component/Console/Tester/CommandTester.php
Methods summary
public
# __construct( Symfony\Component\Console\Command\Command $command )

Constructor.

Constructor.

Parameters

$command
Symfony\Component\Console\Command\Command
$command A Command instance to test.
public integer
# execute( array $input, array $options = array() )

Executes the command.

Executes the command.

Available options:
* interactive: Sets the input interactive flag * decorated: Sets the output decorated flag * verbosity: Sets the output verbosity flag

Parameters

$input
array
$input An array of arguments and options
$options
array
$options An array of options

Returns

integer
The command exit code
public string
# getDisplay( )

Gets the display returned by the last execution of the command.

Gets the display returned by the last execution of the command.

Returns

string
The display
public InputInterface
# getInput( )

Gets the input instance used by the last execution of the command.

Gets the input instance used by the last execution of the command.

Returns

InputInterface
The current input instance
public OutputInterface
# getOutput( )

Gets the output instance used by the last execution of the command.

Gets the output instance used by the last execution of the command.

Returns

OutputInterface
The current output instance
php-coveralls API documentation generated by ApiGen 2.8.0