7 # ask for a recent DBIC version to skip the 5.6 tests as well
8 plan skip_all => 'Test temporarily requires DBIx::Class'
9 unless eval { require DBIx::Class::Storage::Statistics; DBIx::Class->VERSION('0.08124') };
11 plan skip_all => 'Test does not properly work with the pre-0.082800 DBIC trials'
12 if DBIx::Class->VERSION =~ /^0.082700\d\d/;
15 use DBIx::Class::Storage::Debug::PrettyPrint;
18 open my $fh, '>', \$cap;
20 my $pp = DBIx::Class::Storage::Debug::PrettyPrint->new({
22 clear_line => 'CLEAR',
23 executing => 'GOGOGO',
28 $pp->query_start('SELECT * FROM frew WHERE id = 1');
31 qq(SELECT * FROM frew WHERE id = 1 : \nGOGOGO),
34 $pp->query_end('SELECT * FROM frew WHERE id = 1');
37 qq(SELECT * FROM frew WHERE id = 1 : \nGOGOGOCLEAR),