8 eval "use Test::Exception;";
9 plan skip_all => 'Some tests need Test::Exception' if $@;
16 $const = Net::SSLeay::OP_NO_TLSv1();
17 }, 'some random constant exists');
19 ok( defined $const, ' and has a defined value' );
23 Net::SSLeay::make_form( foo => 'bar' );
24 }, 'some random function gets autoloaded');
28 Net::SSLeay::TXT_RC2_128_CBC_EXPORT40_WITH_MD5();
29 }, qr/^Can't locate .*?TXT_RC2_128\.al/, 'disabled constant doesn\'t exist');
33 }, qr/^Can't locate .*?123x\.al/, 'invalid constant doesn\'t exist' );
36 Net::SSLeay::_TEST_INVALID_CONSTANT();
37 }, qr/^Your vendor has not defined SSLeay macro _TEST_INVALID_CONSTANT /,
38 'raises an appropriate error when an openssl macro isn\'t defined');