Re: [Perlunit-users] The First Steps Or A Trap On The Way
Status: Beta
Brought to you by:
mca1001
From: Adam S. <ad...@sp...> - 2002-02-23 23:39:23
|
Oliver Fischer (pl...@sn...) wrote: > At first: Thanks for bringing Beck's test framework to Perl! > > Today I wrote my first test cases and stepped in a possible trap. I startet > my test classs by following the example provided in TestCase.pm > > package FooBar; > > use base qw(Test::Unit::TestCase); > > sub new { > my $self = shift()->SUPER::new(@_); > # your state for fixture here > return $self; > } > > Unfortunately this code caused only errors on my system (w2k and AS Perl). I can't be sure because you didn't include the errors in your mail, but it sounds like you're probably suffering from the buggy base.pm which comes with older versions (e.g. 5.005 IIRC) of Perl. For this reason the CVS tree includes a dependency on at least version 1.00 of base.pm. |