Skip to content

Commit

Permalink
Add accessor for the rendered test view contents
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 10, 2024
1 parent 40ac426 commit d14fa74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/testing/src/Support/TestView.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ public function assertTextIs(string $value): static
return $this;
}

/**
* Get the rendered view as a string.
*/
public function getRendered(): string
{
return $this->rendered;
}

#[NoReturn]
public function dd(bool $writeHtml = true): void
{
Expand Down

0 comments on commit d14fa74

Please sign in to comment.