| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait HtmlTestingAssertions |
||
| 10 | { |
||
| 11 | public function complete(): void |
||
| 12 | { |
||
| 13 | // Just an empty helper so we get easier Git diffs when adding new assertions. |
||
| 14 | } |
||
| 15 | |||
| 16 | public function assertSee(string $value): static |
||
| 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 |
||
| 29 | } |
||
| 30 | |||
| 31 | public function assertDontSeeEscaped(string $value): static |
||
| 34 | } |
||
| 35 | |||
| 36 | protected function doAssert(callable $assertion): static |
||
| 41 | } |
||
| 42 | } |
||
| 43 |