File: socket-class.t

package info (click to toggle)
libnet-http-perl 6.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 284 kB
  • sloc: perl: 856; makefile: 11
file content (27 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use strict;
use warnings;

use Test::More;

{
    $Net::HTTP::SOCKET_CLASS = 'Foo';

    require Net::HTTP;

    is $Net::HTTP::SOCKET_CLASS, 'Foo';

    is_deeply \@Net::HTTP::ISA, [qw[Foo Net::HTTP::Methods]];
}

{
    $Net::HTTPS::SSL_SOCKET_CLASS = 'Foo';

    require Net::HTTPS;

    is $Net::HTTPS::SSL_SOCKET_CLASS, 'Foo';

    is_deeply \@Net::HTTPS::ISA, [qw[Foo Net::HTTP::Methods]];
}


done_testing;