You are here

class ScaffoldTestResult in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.php \Drupal\Tests\Composer\Plugin\Scaffold\ScaffoldTestResult

Holds result of a scaffold test.

Hierarchy

Expanded class hierarchy of ScaffoldTestResult

1 file declares its use of ScaffoldTestResult
ScaffoldTest.php in core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php

File

core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.php, line 8

Namespace

Drupal\Tests\Composer\Plugin\Scaffold
View source
class ScaffoldTestResult {
  protected $docroot;
  protected $scaffoldOutput;

  /**
   * Holds the location of the scaffold fixture and the stdout from the test.
   *
   * @param string $docroot
   * @param string $scaffoldOutput
   */
  public function __construct($docroot, $scaffoldOutput) {
    $this->docroot = $docroot;
    $this->scaffoldOutput = $scaffoldOutput;
  }

  /**
   * Returns the location of the docroot from the scaffold test.
   *
   * @return string
   */
  public function docroot() {
    return $this->docroot;
  }

  /**
   * Returns the standard output from the scaffold test.
   *
   * @return string
   */
  public function scaffoldOutput() {
    return $this->scaffoldOutput;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ScaffoldTestResult::$docroot protected property
ScaffoldTestResult::$scaffoldOutput protected property
ScaffoldTestResult::docroot public function Returns the location of the docroot from the scaffold test.
ScaffoldTestResult::scaffoldOutput public function Returns the standard output from the scaffold test.
ScaffoldTestResult::__construct public function Holds the location of the scaffold fixture and the stdout from the test.