mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 03:14: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
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue