mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix: improves dump message
This commit is contained in:
@ -61,6 +61,7 @@ final class KernelDump
|
|||||||
private function flush(): void
|
private function flush(): void
|
||||||
{
|
{
|
||||||
View::renderUsing($this->output);
|
View::renderUsing($this->output);
|
||||||
|
|
||||||
if ($this->isOpeningHeadline($this->buffer)) {
|
if ($this->isOpeningHeadline($this->buffer)) {
|
||||||
$this->buffer = implode(PHP_EOL, array_slice(explode(PHP_EOL, $this->buffer), 2));
|
$this->buffer = implode(PHP_EOL, array_slice(explode(PHP_EOL, $this->buffer), 2));
|
||||||
}
|
}
|
||||||
@ -69,7 +70,9 @@ final class KernelDump
|
|||||||
|
|
||||||
if ($this->isInternalError($this->buffer)) {
|
if ($this->isInternalError($this->buffer)) {
|
||||||
$type = 'ERROR';
|
$type = 'ERROR';
|
||||||
$this->buffer = str_replace('An error occurred inside PHPUnit.', '', $this->buffer);
|
$this->buffer = str_replace(
|
||||||
|
sprintf('An error occurred inside PHPUnit.%s%sMessage: ', PHP_EOL, PHP_EOL), '', $this->buffer,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->buffer = trim($this->buffer);
|
$this->buffer = trim($this->buffer);
|
||||||
|
|||||||
Reference in New Issue
Block a user