The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use Smart::Comments;
use Test::More 'no_plan';

close *STDERR;
my $STDERR = q{};
open *STDERR, '>', \$STDERR;

### Testing 1...
### Testing 2...
### Testing 3...

my $expected = <<"END_MESSAGES";

#\## Testing 1...
#\## Testing 2...
#\## Testing 3...
END_MESSAGES

is $STDERR, $expected      => 'Messages work';