// Just an empty helper so we get easier Git diffs when adding new assertions.
14
}
15
16
public function assertSee(string $value): static
17
{
18
return $this->doAssert(fn () => PHPUnit::assertStringContainsString($value, $this->html, "The string '$value' was not found in the HTML."));
19
}
20
21
public function assertDontSee(string $value): static
22
{
23
return $this->doAssert(fn () => PHPUnit::assertStringNotContainsString($value, $this->html, "The string '$value' was found in the HTML."));
24
}
25
26
public function assertSeeEscaped(string $value): static
27
{
28
return $this->doAssert(fn () => PHPUnit::assertStringContainsString(e($value), $this->html, "The escaped string '$value' was not found in the HTML."));
29
}
30
31
public function assertDontSeeEscaped(string $value): static
32
{
33
return $this->doAssert(fn () => PHPUnit::assertStringNotContainsString(e($value), $this->html, "The escaped string '$value' was found in the HTML."));
34
}
35
36
protected function doAssert(callable $assertion): static