Show
Ignore:
Timestamp:
07/03/08 19:51:23 (5 months ago)
Author:
tokuhirom
Message:

check arguments.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/App-MadEye/trunk/t/100_bugs/002_results.t

    r15040 r15116  
    77{ 
    88    package Notify; 
    9     sub bar { $count++ } 
     9    use Params::Validate ':all'; 
     10    sub bar { 
     11        my ($self, $c, $args) = validate_pos(@_ => OBJECT, OBJECT, OBJECT); 
     12        $count++; 
     13    } 
    1014    sub config { +{ } } 
    1115} 
     
    1923 
    2024for (1..4) { 
    21     $c->register_hook('notify' => { plugin => 'Notify', method => 'bar'}); 
     25    $c->register_hook('notify' => { plugin => bless({}, 'Notify'), method => 'bar'}); 
    2226} 
    2327for (1..6) {