1 package Test::MooseX::Compiler;
7 use Exporter qw( import );
8 use File::Temp qw( tempdir );
9 use Module::Runtime qw( module_notional_filename );
10 use Path::Class qw( dir );
16 my $Dir = dir( tempdir( CLEANUP => 1 ) );
28 my $pm_file = module_notional_filename($class);
29 my $path = $Dir->file($pm_file);
30 $path->dir()->mkpath( 0, 0755 );
32 open my $fh, '>', $path;
36 $INC{$pm_file} = $path;