1#!/usr/bin/perl -w 2 3use Test::More 'no_diag'; 4 5plan 'skip_all' => "This test cannot be run with the current formatter" 6 unless Test::Builder->new->{Stack}->top->format->isa('Test::Builder::Formatter'); 7 8pass('foo'); 9diag('This should not be displayed'); 10 11is(Test::More->builder->no_diag, 1); 12 13done_testing; 14