File: 00use.t

package info (click to toggle)
libcal-dav-perl 0.6-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 108 kB
  • sloc: perl: 266; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!perl -w

use strict;
use Test::More tests => 3;

# Use
use_ok("Cal::DAV");

# Wrong instantiation
my $cal;
is( eval { $cal = Cal::DAV->new() }, undef, "Wrong instantiation");

# Right instantiation
ok($cal = Cal::DAV->new(user => 'foo', pass => 'pass', url => 'http://example.com'), "Right instantiation");