ScaffoldTestResult.php

Same filename and directory in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.php
  2. 8.9.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.php
  3. 10 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.php

Namespace

Drupal\Tests\Composer\Plugin\Scaffold

File

core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Composer\Plugin\Scaffold;


/**
 * Holds result of a scaffold test.
 */
class ScaffoldTestResult {
  
  /**
   * The location of the scaffold fixture.
   *
   * @var string
   */
  protected $docroot;
  
  /**
   * The stdout from the test.
   *
   * @var string
   */
  protected $scaffoldOutput;
  
  /**
   * Holds the location of the scaffold fixture and the stdout from the test.
   *
   * @param string $docroot
   *   The location of the scaffold fixture.
   * @param string $scaffoldOutput
   *   The stdout from the test.
   */
  public function __construct($docroot, $scaffoldOutput) {
    $this->docroot = $docroot;
    $this->scaffoldOutput = $scaffoldOutput;
  }
  
  /**
   * Returns the location of the docroot from the scaffold test.
   *
   * @return string
   *   The location of the scaffold fixture.
   */
  public function docroot() {
    return $this->docroot;
  }
  
  /**
   * Returns the standard output from the scaffold test.
   *
   * @return string
   *   The standard output from the scaffold test.
   */
  public function scaffoldOutput() {
    return $this->scaffoldOutput;
  }

}

Classes

Title Deprecated Summary
ScaffoldTestResult Holds result of a scaffold test.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.