/t/010_core/request_upload-basename.t
http://github.com/http-engine/HTTP-Engine · Raku · 10 lines · 9 code · 1 blank · 0 comment · 0 complexity · 7618a24ebf7d7e788c3f7bf432cb30cf MD5 · raw file
- use strict;
- use warnings;
- use Test::More tests => 1;
- use HTTP::Engine;
- use HTTP::Engine::Request::Upload;
- my $upload = HTTP::Engine::Request::Upload->new(
- filename => '/tmp/foo/bar/hoge.txt',
- );
- is $upload->basename, 'hoge.txt';