Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    # we test if we can call setDebetAmount directly
    throws_ok { $passief->setDebetAmount(0) } qr/setDebetAmount is protect
    +ed/,
      "setDebetAmount is protected";
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    }
    is( $setCredit, $two, "setCreditAmount returns 2" );
    is( $setDebet, $one, "setDebetAmount returns 1" );