7 'Test::Output' => '0.01',
23 ::stderr_like{ has foo => (
29 qr/\QAllowing a native trait to automatically supply a default is deprecated/,
30 'Not providing a default for native String trait warns';
32 ::stderr_like{ has bar => (
38 qr/\QAllowing a native trait to automatically supply a value for "is" is deprecated/,
39 'Not providing a value for is with native String trait warns';
41 ::stderr_like{ with 'Role' =>
42 { excludes => ['thing'], alias => { thing => 'thing2' } };
44 qr/\QThe alias and excludes options for role application have been renamed -alias and -excludes/,
45 'passing excludes or alias with a leading dash warns';
47 !Foo->meta->has_method('thing'),
48 'thing method is excluded from role application'
51 Foo->meta->has_method('thing2'),
52 'thing2 method is created as alias in role application'
61 ::stderr_is{ has foo => (
68 'Providing a reader for a String trait avoids default is warning';
70 ::stderr_is{ has bar => (
74 builder => '_build_foo',
77 'Providing a builder for a String trait avoids default default warning';
87 ::stderr_is{ has foo => (
94 'Providing a writer for a String trait avoids default is warning';
96 ::stderr_is{ has bar => (
103 'Making a String trait required avoids default default warning';
113 ::stderr_is{ has foo => (
114 traits => ['String'],
120 'Providing an accessor for a String trait avoids default is warning';