mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 11:24:03 +00:00
Laravel 12 support (#28)
* Laravel 12 support * bump larastan * phpstan fixes * remove pest() * update larastan dependency name
This commit is contained in:
parent
b642e32a4b
commit
f5011bce68
7 changed files with 14 additions and 18 deletions
|
|
@ -170,7 +170,7 @@ test('an exception is thrown if none of the currencies match the prefix and suff
|
|||
|
||||
currencies()->remove(USD::class);
|
||||
|
||||
pest()->expectException(CannotExtractCurrencyException::class);
|
||||
$this->expectException(CannotExtractCurrencyException::class);
|
||||
Money::fromFormatted($formatted);
|
||||
});
|
||||
|
||||
|
|
@ -178,7 +178,7 @@ test('an exception is thrown if multiple currencies are using the same prefix an
|
|||
currencies()->add(['code' => 'USD2', 'name' => 'USD2', 'prefix' => '$']);
|
||||
$money = money(1000);
|
||||
|
||||
pest()->expectException(CannotExtractCurrencyException::class);
|
||||
$this->expectException(CannotExtractCurrencyException::class);
|
||||
Money::fromFormatted($money->formatted());
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue