@@ -260,7 +260,8 @@ subtest 'Stream from myapp.pl with Unicode prefix' => sub {
260260};
261261
262262subtest ' URL from myapp.pl with Unicode prefix' => sub {
263- $t -> get_ok(' /x/♥/url/☃' )-> status_is(200)
263+ $t -> get_ok(' /x/♥/url/☃' )
264+ -> status_is(200)
264265 -> content_is(' /x/%E2%99%A5/url/%E2%98%83.json -> /x/%E2%99%A5/%E2%98%83/stream!' );
265266};
266267
326327};
327328
328329subtest ' Host from myapp.pl with domain' => sub {
329- $t -> get_ok(' /host' => {Host => ' mojolicious.org' })-> status_is(200)-> header_is(' X-Message' => ' it works!' )
330+ $t -> get_ok(' /host' => {Host => ' mojolicious.org' })
331+ -> status_is(200)
332+ -> header_is(' X-Message' => ' it works!' )
330333 -> content_is(' mojolicious.org' );
331334};
332335
344347};
345348
346349subtest ' Host from myapp.pl with domain again' => sub {
347- $t -> get_ok(' /host' => {Host => ' mojolicious.org' })-> status_is(200)-> header_is(' X-Message' => ' it works!' )
350+ $t -> get_ok(' /host' => {Host => ' mojolicious.org' })
351+ -> status_is(200)
352+ -> header_is(' X-Message' => ' it works!' )
348353 -> content_is(' mojolicious.org' );
349354};
350355
@@ -362,17 +367,23 @@ EOF
362367};
363368
364369subtest ' Host from myapp.pl with wildcard domain' => sub {
365- $t -> get_ok(' /host' => {Host => ' ExAmPlE.CoM' })-> status_is(200)-> header_is(' X-Message' => ' it works!' )
370+ $t -> get_ok(' /host' => {Host => ' ExAmPlE.CoM' })
371+ -> status_is(200)
372+ -> header_is(' X-Message' => ' it works!' )
366373 -> content_is(' ExAmPlE.CoM' );
367374};
368375
369376subtest ' Host from myapp.pl with wildcard domain again' => sub {
370- $t -> get_ok(' /host' => {Host => ' www.example.com' })-> status_is(200)-> header_is(' X-Message' => ' it works!' )
377+ $t -> get_ok(' /host' => {Host => ' www.example.com' })
378+ -> status_is(200)
379+ -> header_is(' X-Message' => ' it works!' )
371380 -> content_is(' www.example.com' );
372381};
373382
374383subtest ' Host from myapp.pl with wildcard domain again' => sub {
375- $t -> get_ok(' /host' => {Host => ' foo.bar.example.com' })-> status_is(200)-> header_is(' X-Message' => ' it works!' )
384+ $t -> get_ok(' /host' => {Host => ' foo.bar.example.com' })
385+ -> status_is(200)
386+ -> header_is(' X-Message' => ' it works!' )
376387 -> content_is(' foo.bar.example.com' );
377388};
378389
390401};
391402
392403subtest ' Host from myapp.pl with wildcard domain and Unicode prefix' => sub {
393- $t -> get_ok(' /♥/123/host' => {Host => ' foo-bar.de' })-> status_is(200)-> header_is(' X-Message' => ' it works!' )
404+ $t -> get_ok(' /♥/123/host' => {Host => ' foo-bar.de' })
405+ -> status_is(200)
406+ -> header_is(' X-Message' => ' it works!' )
394407 -> content_is(' foo-bar.de' );
395408};
396409
@@ -399,7 +412,9 @@ subtest 'Echo from myapp.pl with wildcard domain and Unicode prefix' => sub {
399412};
400413
401414subtest ' Host from myapp.pl with wildcard domain and Unicode prefix again' => sub {
402- $t -> get_ok(' /♥/123/host' => {Host => ' www.foo-bar.de' })-> status_is(200)-> header_is(' X-Message' => ' it works!' )
415+ $t -> get_ok(' /♥/123/host' => {Host => ' www.foo-bar.de' })
416+ -> status_is(200)
417+ -> header_is(' X-Message' => ' it works!' )
403418 -> content_is(' www.foo-bar.de' );
404419};
405420
@@ -424,8 +439,10 @@ subtest 'Another invalid domain' => sub {
424439};
425440
426441subtest ' Embedded WebSocket' => sub {
427- $t -> websocket_ok(' /x/♥/url_for' )-> send_ok(' ws_test' )
428- -> message_ok-> message_like(qr ! ^ws://127\. 0\. 0\. 1:\d +/x/%E2 %99%A5 /url_for$ ! )-> send_ok(' index' )
442+ $t -> websocket_ok(' /x/♥/url_for' )
443+ -> send_ok(' ws_test' )
444+ -> message_ok-> message_like(qr ! ^ws://127\. 0\. 0\. 1:\d +/x/%E2 %99%A5 /url_for$ ! )
445+ -> send_ok(' index' )
429446 -> message_ok-> message_like(qr ! ^http://127\. 0\. 0\. 1:\d +/x/%E2 %99%A5 $ ! )-> finish_ok;
430447};
431448
0 commit comments