class ScaffoldTestResult

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.php \Drupal\Tests\Composer\Plugin\Scaffold\ScaffoldTestResult
  2. 8.9.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.php \Drupal\Tests\Composer\Plugin\Scaffold\ScaffoldTestResult
  3. 11.x 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 10

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
     *   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
     */
    public function docroot() {
        return $this->docroot;
    }
    
    /**
     * Returns the standard output from the scaffold test.
     *
     * @return string
     */
    public function scaffoldOutput() {
        return $this->scaffoldOutput;
    }

}

Members

Title Sort descending Modifiers Object type Summary
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.

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