class DummyOutput in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tests/Fixtures/DummyOutput.php \Symfony\Component\Console\Tests\Fixtures\DummyOutput
Dummy output.
@author Kévin Dunglas <dunglas@gmail.com>
Hierarchy
- class \Symfony\Component\Console\Output\Output implements OutputInterface
- class \Symfony\Component\Console\Output\BufferedOutput
- class \Symfony\Component\Console\Tests\Fixtures\DummyOutput
- class \Symfony\Component\Console\Output\BufferedOutput
Expanded class hierarchy of DummyOutput
1 file declares its use of DummyOutput
- ConsoleLoggerTest.php in vendor/
symfony/ console/ Tests/ Logger/ ConsoleLoggerTest.php
File
- vendor/
symfony/ console/ Tests/ Fixtures/ DummyOutput.php, line 21
Namespace
Symfony\Component\Console\Tests\FixturesView source
class DummyOutput extends BufferedOutput {
/**
* @return array
*/
public function getLogs() {
$logs = array();
foreach (explode("\n", trim($this
->fetch())) as $message) {
preg_match('/^\\[(.*)\\] (.*)/', $message, $matches);
$logs[] = sprintf('%s %s', $matches[1], $matches[2]);
}
return $logs;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BufferedOutput:: |
private | property | ||
BufferedOutput:: |
protected | function |
Writes a message to the output. Overrides Output:: |
|
BufferedOutput:: |
public | function | Empties buffer and returns its content. | |
DummyOutput:: |
public | function | ||
Output:: |
private | property | ||
Output:: |
private | property | ||
Output:: |
public | function |
Returns current output formatter instance. Overrides OutputInterface:: |
|
Output:: |
public | function |
Gets the current verbosity of the output. Overrides OutputInterface:: |
|
Output:: |
public | function | ||
Output:: |
public | function |
Gets the decorated flag. Overrides OutputInterface:: |
|
Output:: |
public | function | ||
Output:: |
public | function | ||
Output:: |
public | function | ||
Output:: |
public | function |
Sets the decorated flag. Overrides OutputInterface:: |
1 |
Output:: |
public | function |
Sets output formatter. Overrides OutputInterface:: |
1 |
Output:: |
public | function |
Sets the verbosity of the output. Overrides OutputInterface:: |
1 |
Output:: |
public | function |
Writes a message to the output. Overrides OutputInterface:: |
|
Output:: |
public | function |
Writes a message to the output and adds a newline at the end. Overrides OutputInterface:: |
|
Output:: |
public | function | Constructor. | 1 |
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant |