my $tester = Web::API::Mapper::Test->new( mapper => $m ); $tester->ok( '/foo/get/id' ); $tester->is_deeply( '/foo/get/id' , { data => "John" } , { data => "Johnny walker." } ); $tester->is( '/foo/get/name' , 'John' );
To install Web::API::Mapper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::API::Mapper
CPAN shell
perl -MCPAN -e shell install Web::API::Mapper
For more information on module installation, please visit the detailed CPAN module installation guide.