function FixturesBase::io
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Composer/Plugin/FixturesBase.php \Drupal\Tests\Composer\Plugin\FixturesBase::io()
Gets an IO fixture.
Parameters
bool $reset: Whether to reset the io fixture. This is useful for tests that need to write to the io fixture multiple times.
Return value
\Composer\IO\IOInterface A Composer IOInterface to write to; output may be retrieved via Fixtures::getOutput().
2 calls to FixturesBase::io()
- Fixtures::runScaffold in core/
tests/ Drupal/ Tests/ Composer/ Plugin/ Scaffold/ Fixtures.php - Runs the scaffold operation.
- FixturesBase::getComposer in core/
tests/ Drupal/ Tests/ Composer/ Plugin/ FixturesBase.php - Gets the Composer object.
File
-
core/
tests/ Drupal/ Tests/ Composer/ Plugin/ FixturesBase.php, line 61
Class
- FixturesBase
- Base class for fixtures to test composer plugins.
Namespace
Drupal\Tests\Composer\PluginCode
public function io(bool $reset = FALSE) : IOInterface {
if ($reset || !isset($this->io)) {
$this->io = new BufferIO();
}
return $this->io;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.