+BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
+
use strict;
use warnings;
use Test::More;
use Test::Warn;
-use lib qw(t/lib);
-use DBIC::SqlMakerTest;
-use_ok('DBICTest');
+use DBICTest ':DiffSQL';
my $schema = DBICTest->init_schema();
for my $expect_warn (1, 0) {
warnings_like (
sub {
- my ($sql, @bind) = $sql_maker->select ('foo', undef, { -nest => \ 'bar' } );
+ my ($sql, @bind) = $sql_maker->select ('foo', '*', { -nest => \ 'bar' } );
is_same_sql_bind (
$sql, \@bind,
'SELECT * FROM foo WHERE ( bar )', [],