# This tests the fix (that fulfills the documentation claim).
-use strict; use warnings FATAL => 'all';
+use strict;
+use warnings FATAL => 'all';
use Test::More tests => 4;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
{
package MyClass;