in reply to too much testing?
ok(! $foo->getDetails( PARAM_ONE => 1234 ), 'missing parameter'); [download]
the eval is the closest without trying Test::Exception.