20 lines
545 B
PHP
20 lines
545 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Unit\Domain\Models\ValueObjects\Inco\Composition;
|
|
|
|
use Domain\Models\ValueObjects\Inco\Composition\FruitAndNutAmount;
|
|
|
|
covers(FruitAndNutAmount::class);
|
|
|
|
describe('FruitAndNutAmount Value Object', function (): void {
|
|
it('can be instantiated with fruits and nuts percentages', function (): void {
|
|
// GIVEN & WHEN
|
|
$amount = new FruitAndNutAmount('40', '10');
|
|
|
|
// THEN
|
|
expect($amount->fruits)->toBe('40')
|
|
->and($amount->nuts)->toBe('10');
|
|
});
|
|
});
|