class ScaffoldTestResult in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.php \Drupal\Tests\Composer\Plugin\Scaffold\ScaffoldTestResult
- 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/ScaffoldTestResult.php \Drupal\Tests\Composer\Plugin\Scaffold\ScaffoldTestResult
Holds result of a scaffold test.
Hierarchy
- class \Drupal\Tests\Composer\Plugin\Scaffold\ScaffoldTestResult
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\ScaffoldView 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;
}
}