Test::Unit::Assertion::Exception(3pm) - phpMan

Command: man perldoc info search(apropos)  


Test::Unit::Assertion::ExceptioUsermContributed Perl DocumenTest::Unit::Assertion::Exception(3pm)

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 AT 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
       o   Test::Unit::TestCase

       o   Test::Unit::Assertion

perl v5.28.1                                2019-07-14      Test::Unit::Assertion::Exception(3pm)

Generated by $Id: phpMan.php,v 4.55 2007/09/05 04:42:51 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2024-04-24 19:00 @3.17.128.129 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0!Valid CSS!