for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace hanneskod\readmetester\Runner;
/**
* Output from an executed code block
*/
class ErrorOutcome implements OutcomeInterface
{
* @var string
private $message;
public function __construct(string $message)
$this->message = $message;
}
public function getType(): string
return self::TYPE_ERROR;
public function getPayload(): array
return ['error' => $this->message];
public function __tostring(): string
return $this->message;