mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 06:13:35 +02:00
chore: refactors exceptions
This commit is contained in:
@@ -13,6 +13,6 @@ final class ExpectationNotFound extends Exception
|
||||
{
|
||||
public static function fromName(string $name): ExpectationNotFound
|
||||
{
|
||||
return new self("Expectation [$name] does not exist.");
|
||||
return new self("The expectation [$name] does not exist. You may register it using [expect()->extend()].");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user