Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Test::Unit::Assertion::Exception

Name Test::Unit::Assertion::Exception
Version
Located at /usr/share/perl5
File /usr/share/perl5/Test/Unit/Assertion/Exception.pm
Is Core No
Search CPAN for this module Test::Unit::Assertion::Exception
Documentation Test::Unit::Assertion::Exception
Module Details Test::Unit::Assertion::Exception

NAME

Test::Unit::Assertion::Exception - A assertion for raised exceptions


SYNOPSIS

    require Test::Unit::Assertion::Exception;
    my $assert_raised =
      Test::Unit::Assertion::Exception->new('MyException');
    # This should succeed
    $assert_eq->do_assertion(sub { MyException->throw() });
    # This should fail
    $assert_eq->do_assertion(sub { });


DESCRIPTION

Although the SYNOPSIS shows how you'd use Test::Unit::Assertion::Exception directly, it is more sensibly used indirectly via Test::Unit::Test::assert_raises(), which instantiates a Test::Unit::Assertion::Exception.


AUTHOR

Copyright (c) 2001 Piers Cawley <pdcawley@iterative-software.com>.

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


SEE ALSO

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026