You are here

public function Fixtures::io in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php \Drupal\Tests\Composer\Plugin\Scaffold\Fixtures::io()

Gets an IO fixture.

Return value

\Composer\IO\IOInterface A Composer IOInterface to write to; output may be retrieved via Fixtures::getOutput().

2 calls to Fixtures::io()
Fixtures::getComposer in core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php
Gets the Composer object.
Fixtures::runScaffold in core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php
Runs the scaffold operation.

File

core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php, line 57

Class

Fixtures
Convenience class for creating fixtures.

Namespace

Drupal\Tests\Composer\Plugin\Scaffold

Code

public function io() {
  if (!$this->io) {
    $this->io = new BufferIO();
  }
  return $this->io;
}