--- a/lib/Test/Unit/TestCase.pm +++ b/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 {