Changeset 13365
- Timestamp:
- 06/07/08 10:21:02 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-Engine/branches/lazy_request/t/10_request_builder.t
r11543 r13365 5 5 use IO::Scalar; 6 6 7 plan tests => 7;7 plan tests => 8; 8 8 9 9 can_ok( … … 42 42 --- body 43 43 --- test 44 is $c->req->address, '127.0.0.1' ;44 is $c->req->address, '127.0.0.1', "request address"; 45 45 46 46 === … … 55 55 --- body: a=b&c=d 56 56 --- test 57 is_deeply $c->req->body_params, {a => 'b', c => 'd'} ;57 is_deeply $c->req->body_params, {a => 'b', c => 'd'}, "body params"; 58 58 59 59 === … … 70 70 isa_ok $c->req->body, 'IO::Handle'; 71 71 $c->req->body->sysread(my $buf, $c->req->content_length); 72 is $buf, 'OCTET STREAM' ;72 is $buf, 'OCTET STREAM', "buffer"; 73 73 74 74 === cookie … … 84 84 --- body: OCTET STREAM 85 85 --- test 86 is $c->req->cookie('unknown'), undef; 87 is $c->req->cookie('foo')->value, 'hoge'; 86 is $c->req->cookie('unknown'), undef, "unknown cookie"; 87 isa_ok( $c->req->cookie('foo'), "CGI::Simple::Cookie" ); 88 is $c->req->cookie('foo')->value, 'hoge', "cookie value"; 88 89
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)