@internal This method is not covered by the backward compatibility promise for PHPUnit
public final function setResult(mixed $result) : void { $this->testResult = $result; }