sub get_config_from_file {
my ($class, $file) = @_;
+ $file = $file->() if ref $file eq 'CODE';
my $files_ref = ref $file eq 'ARRAY' ? $file : [$file];
my $can_config_any_args = $class->can('config_any_args');
package MXDefaultMultipleConfigsTest;
use Moose;
-with 'MooseX::SimpleConfig';
-use Path::Class::File;
-
-has 'direct_attr' => (is => 'ro', isa => 'Int');
-
-has 'req_attr' => (is => 'rw', isa => 'Str', required => 1);
+extends 'MXDefaultConfigTest';
has '+configfile' => ( default => sub { [ 'test.yaml' ] } );