Skip to content

Commit

Permalink
Merge pull request #1825 from hydephp/update-testing-helpers
Browse files Browse the repository at this point in the history
Internal: Update view testing helpers
  • Loading branch information
caendesilva authored Jul 10, 2024
2 parents 40ac426 + d14fa74 commit a3f46be
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 a3f46be

Please sign in to comment.