9 if ( !Config::Any::YAML->is_supported ) {
10 plan skip_all => 'YAML format not supported';
17 my $config = Config::Any::YAML->load( 't/conf/conf.yml' );
19 is( $config->{ name }, 'TestApp' );
24 my $file = 't/invalid/conf.yml';
25 my $config = eval { Config::Any::YAML->load( $file ) };
27 ok( !$config, 'config load failed' );
28 ok( $@, "error thrown ($@)" );
31 # parse error generated on invalid config
33 my $file = 't/invalid/conf.yml';
34 my $config = eval { Config::Any->load_files( { files => [$file], use_ext => 1} ) };
36 ok( !$config, 'config load failed' );
37 ok( $@, "error thrown ($@)" );