Skip to content

Commit 2cd3da2

Browse files
committed
Add improved assertion output
1 parent 6a47409 commit 2cd3da2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/testing/src/Support/TestView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function assertSeeHtmlIgnoringFormatting(string $value): static
4141
*/
4242
public function assertAttributeIs(string $attributeName, string $expectedValue): static
4343
{
44-
PHPUnit::assertStringContainsString($attributeName.'="'.$expectedValue.'"', $this->rendered);
44+
PHPUnit::assertStringContainsString($attributeName.'="'.$expectedValue.'"', $this->rendered, "The attribute '$attributeName' with value '$expectedValue' was not found.");
4545

4646
return $this;
4747
}

0 commit comments

Comments
 (0)