Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 11, 2021
1 parent b904815 commit ab47680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Concerns/MakesAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ public function assertAttributeContains($selector, $attribute, $value)
PHPUnit::assertStringContainsString(
$value,
$actual,
"Expected '$attribute' attribute [{$value}] is not part of the value [$actual]."
"Attribute '$attribute' does not contain [{$value}]. Full attribute value was [$actual]."
);

return $this;
Expand Down
2 changes: 1 addition & 1 deletion tests/MakesAssertionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public function test_assert_attribute_contains()
$this->fail();
} catch (ExpectationFailedException $e) {
$this->assertStringContainsString(
"Expected 'bar' attribute [class-b] is not part of the value [class-1 class-2].",
"does not contain",
$e->getMessage()
);
}
Expand Down

0 comments on commit ab47680

Please sign in to comment.