1
0
Fork 0
mirror of https://github.com/archtechx/money.git synced 2025-12-14 20:14:03 +00:00

remove pest()

This commit is contained in:
Samuel Štancl 2025-03-11 17:31:46 +01:00
parent e30211058a
commit 578c5c48ba
3 changed files with 4 additions and 9 deletions

View file

@ -5,13 +5,13 @@ use ArchTech\Money\Exceptions\InvalidCurrencyException;
use ArchTech\Money\Tests\Currencies\CZK;
test("a currency is invalid if it doesn't have a name", function () {
pest()->expectException(InvalidCurrencyException::class);
$this->expectException(InvalidCurrencyException::class);
new Currency(rate: 2.0, code: 'CZK');
});
test("a currency is invalid if it doesn't have a code", function () {
pest()->expectException(InvalidCurrencyException::class);
$this->expectException(InvalidCurrencyException::class);
new Currency(rate: 2.0, name: 'Czech Crown');
});