summaryrefslogtreecommitdiff
path: root/t/20undefined_subs.t
blob: 2b348b42733782d0c917a249f05e098b959829e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!perl -w
use strict;
use Test::More tests => 4;

use WWW::Curl::Easy;
use WWW::Curl::Share;
use WWW::Curl::Multi;
use WWW::Curl::Form;

eval { WWW::Curl::Easy->no_such_method0 };
like $@, qr/\b no_such_method0 \b/xms;

eval { WWW::Curl::Share->no_such_method1 };
like $@, qr/\b no_such_method1 \b/xms;

eval { WWW::Curl::Multi->no_such_method2 };
like $@, qr/\b no_such_method2 \b/xms;

eval { WWW::Curl::Form->no_such_method3 };
like $@, qr/\b no_such_method3 \b/xms;