opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
Testing
/
PHPUnit
/
ValueObject
➕ New
📤 Upload
✎ Editing:
RectorTestResult.php
← Back
<?php declare (strict_types=1); namespace Rector\Testing\PHPUnit\ValueObject; use Rector\Contract\Rector\RectorInterface; use Rector\ValueObject\ProcessResult; /** * @api used in tests */ final class RectorTestResult { /** * @readonly * @var string */ private $changedContents; /** * @readonly * @var \Rector\ValueObject\ProcessResult */ private $processResult; public function __construct(string $changedContents, ProcessResult $processResult) { $this->changedContents = $changedContents; $this->processResult = $processResult; } public function getChangedContents() : string { return $this->changedContents; } /** * @return array<class-string<RectorInterface>> */ public function getAppliedRectorClasses() : array { $rectorClasses = []; foreach ($this->processResult->getFileDiffs() as $fileDiff) { $rectorClasses = \array_merge($rectorClasses, $fileDiff->getRectorClasses()); } \sort($rectorClasses); return \array_unique($rectorClasses); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel