From ab476806c8bef81d8e3014bd3be4c142c0355e8e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 11 Oct 2021 08:57:35 -0500 Subject: [PATCH] formatting --- src/Concerns/MakesAssertions.php | 2 +- tests/MakesAssertionsTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Concerns/MakesAssertions.php b/src/Concerns/MakesAssertions.php index aeeacdc24..d053907e8 100644 --- a/src/Concerns/MakesAssertions.php +++ b/src/Concerns/MakesAssertions.php @@ -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; diff --git a/tests/MakesAssertionsTest.php b/tests/MakesAssertionsTest.php index 22588e3a9..f78d166c8 100644 --- a/tests/MakesAssertionsTest.php +++ b/tests/MakesAssertionsTest.php @@ -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() ); }