for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace AlecRabbit\Spinner\Core\Adapters;
use AlecRabbit\Spinner\Core\Contracts\OutputInterface;
/**
* Class EchoOutputAdapter
*
* @codeCoverageIgnore
*/
class EchoOutputAdapter implements OutputInterface
{
/** {@inheritDoc} */
public function write($messages, $newline = false, $options = 0): void
if (!is_iterable($messages)) {
$messages = [$messages];
}
$nl = $newline ? PHP_EOL : '';
foreach ($messages as $message) {
echo $message . $nl;
* @return resource
public function getStream()
return STDOUT;