ScaffoldTestResult.php in Drupal 10
Same filename and directory in other branches
Namespace
Drupal\Tests\Composer\Plugin\ScaffoldFile
core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.phpView source
<?php
namespace Drupal\Tests\Composer\Plugin\Scaffold;
/**
* Holds result of a scaffold test.
*/
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;
}
}
Classes
Name | Description |
---|---|
ScaffoldTestResult | Holds result of a scaffold test. |