The last released version of Test::Unit is 0.25. Perl 5.20.2 complains with it about deprecated "defined(@array)" and does not install it over cpan. Write down in doc/README.deps, that this patch is recommended towards Test::Unit to make the perl interpreter happy:
--- lib/Test/Unit/TestCase.pm.orig
+++ lib/Test/Unit/TestCase.pm
@@ -103,7 +103,7 @@
my $class = ref($_[0]) || $_[0];
my @tests = ();
no strict 'refs';
- if (defined(@{"$class\::TESTS"})) {
+ if (@{"$class\::TESTS"}) {
push @tests, @{"$class\::TESTS"};
}
else {
The last released version of Test::Unit is 0.25. Perl 5.20.2 complains with it about deprecated "defined(@array)" and does not install it over cpan. Write down in doc/README.deps, that this patch is recommended towards Test::Unit to make the perl interpreter happy: