1
0
Fork 0
mirror of https://github.com/archtechx/money.git synced 2025-12-12 19:34:02 +00:00

Update immutability tests

This commit is contained in:
lukinovec 2023-02-16 08:27:12 +01:00
parent 3a7deadd19
commit 8ce0b82ef0

View file

@ -11,8 +11,8 @@ test('Money value is immutable', function () {
try {
$money->value = 200;
} catch (Error $th) {
expect($th->getMessage())->toStartWith('Cannot access protected property');
} catch (Throwable $th) {
expect($th)->toBeInstanceOf(Error::class);
}
});
@ -21,8 +21,8 @@ test('Money currency is immutable', function () {
try {
$money->currency = 'EUR';
} catch (Error $th) {
expect($th->getMessage())->toStartWith('Cannot access protected property');
} catch (Throwable $th) {
expect($th)->toBeInstanceOf(Error::class);
}
});