diff --git a/src/Expectation.php b/src/Expectation.php index f145be31..5efeb8e9 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -583,7 +583,7 @@ final class Expectation return Targeted::make( $this, fn (ObjectDescription $object): bool => $object->reflectionClass->hasMethod($method), - 'to have method', + sprintf("to have method '%s'", $method), FileLineFinder::where(fn (string $line): bool => str_contains($line, 'class')), ); } diff --git a/src/Factories/Covers/CoversClass.php b/src/Factories/Covers/CoversClass.php new file mode 100644 index 00000000..756139d4 --- /dev/null +++ b/src/Factories/Covers/CoversClass.php @@ -0,0 +1,13 @@ +attributes = [ += $this->attributes = [ new Attribute( \PHPUnit\Framework\Attributes\Test::class, [], diff --git a/src/Pest.php b/src/Pest.php index e53afa26..d9b4e58b 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -6,7 +6,7 @@ namespace Pest; function version(): string { - return '3.0.0-dev-0008'; + return '3.0.0-beta-1'; } function testDirectory(string $file = ''): string diff --git a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap index 06844d25..7812e3d7 100644 --- a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap @@ -1,5 +1,9 @@ +<<<<<<< HEAD Pest Testing Framework 3.0.0-dev-0008. +======= + Pest Testing Framework 2.35.0. +>>>>>>> 2.x USAGE: pest [options] diff --git a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap index 1dfa5f19..265f864b 100644 --- a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap @@ -1,3 +1,7 @@ +<<<<<<< HEAD Pest Testing Framework 3.0.0-dev-0008. +======= + Pest Testing Framework 2.35.0. +>>>>>>> 2.x