Test live web server



examples/mocking-functions/webapi.t
use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More;
plan tests => 1;

use MyWebAPI;

my $w = MyWebAPI->new;

is_deeply $w->count_strings('Beyonce', 'Miley Cyrus'), 
    {
        'Beyonce'     => 26,
        'Miley Cyrus' => 3,
    };

1..1
not ok 1
#   Failed test at webapi.t line 14.
#     Structures begin differing at:
#          $got->{Miley Cyrus} = '4'
#     $expected->{Miley Cyrus} = '3'
# Looks like you failed 1 test of 1.