Changeset 12377 for lang/perl/WWW-YourFileHost/trunk/t/01.t
- Timestamp:
- 05/26/08 00:59:06 (6 months ago)
- Files:
-
- 1 modified
-
lang/perl/WWW-YourFileHost/trunk/t/01.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/WWW-YourFileHost/trunk/t/01.t
r10289 r12377 3 3 use strict; 4 4 use warnings; 5 use LWP::UserAgent; 5 6 use WWW::YourFileHost; 6 7 use Test::More tests => 4; 7 8 8 9 my $url = "http://www.yourfilehost.com/media.php?cat=video&file=guns_dont_kill_people.flv"; 10 my $ua = LWP::UserAgent->new( agent => "WWW::YourFileHost" ); 11 $ua->cookie_jar( HTTP::Cookies->new( 12 file => '', 13 autosave => 1, 14 )); 9 15 10 my $res = WWW::YourFileHost->new( url => $url );16 my $res = WWW::YourFileHost->new( url => $url , ua => $ua ); 11 17 isa_ok $res, 'WWW::YourFileHost'; 12 18
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)