unless $self->dynamic or $self->quiet;
my $schema_text =
- qq|package $schema_class;\n\n|
+ qq|use utf8;\n|
+ . qq|package $schema_class;\n\n|
. qq|# Created by DBIx::Class::Schema::Loader\n|
. qq|# DO NOT MODIFY THE FIRST PART OF THIS FILE\n\n|;
foreach my $src_class (@classes) {
my $src_text =
- qq|package $src_class;\n\n|
+ qq|use utf8;\n|
+ . qq|package $src_class;\n\n|
. qq|# Created by DBIx::Class::Schema::Loader\n|
. qq|# DO NOT MODIFY THE FIRST PART OF THIS FILE\n\n|;
$t->cleanup;
-# test out the POD
+# test out the POD and "use utf8;"
$t->dump_test(
classname => 'DBICTest::DumpMore::1',
options => {
},
regexes => {
schema => [
+ qr/^use utf8;\n/,
qr/package DBICTest::DumpMore::1;/,
qr/->load_classes/,
],
Foo => [
+ qr/^use utf8;\n/,
qr/package DBICTest::DumpMore::1::Foo;/,
qr/\n=head1 NAME\n\nDBICTest::DumpMore::1::Foo\n\n=cut\n\nuse strict;\nuse warnings;\n\n/,
qr/\n=head1 BASE CLASS: L<My::ResultBaseClass>\n\n=cut\n\nuse base 'My::ResultBaseClass';\n\n/,
qr/1;\n$/,
],
Bar => [
+ qr/^use utf8;\n/,
qr/package DBICTest::DumpMore::1::Bar;/,
qr/\n=head1 NAME\n\nDBICTest::DumpMore::1::Bar\n\n=cut\n\nuse strict;\nuse warnings;\n\n/,
qr/\n=head1 BASE CLASS: L<My::ResultBaseClass>\n\n=cut\n\nuse base 'My::ResultBaseClass';\n\n/,