4 use warnings FATAL => 'all';
14 use Function::Parameters qw(:strict);
16 method whatever($this) {
20 is( Stuff->whatever(23), 23 );
22 like exception { Stuff->whatever() }, qr/Not enough arguments/;
24 method some_optional($that, $this = 22) {
28 is( Stuff->some_optional(18), 18 + 22 );
30 like exception { Stuff->some_optional() }, qr/Not enough arguments/;