path)->toBe($path) ->and($vo->originalName)->toBe($originalName) ->and($vo->mimeType)->toBe($mimeType); }); it('throws exception if path is empty', function () { // GIVEN $path = ' '; // WHEN $action = fn () => getNewAttachedFile(['path' => $path]); // THEN expect($action)->toThrow(\DomainException::class); }); it('throws exception if original name is empty', function () { // GIVEN $originalName = ' '; // WHEN $action = fn () => getNewAttachedFile(['originalName' => $originalName]); // THEN expect($action)->toThrow(\DomainException::class); }); it('throws exception if mime type is empty', function () { // GIVEN $mimeType = ' '; // WHEN $action = fn () => getNewAttachedFile(['mimeType' => $mimeType]); // THEN expect($action)->toThrow(\DomainException::class); }); });