Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.6.0

Bug #14901 Unit test failures - CVS
Submitted: 2008-10-28 01:50 UTC
From: doconnor Assigned: berdir
Status: Closed Package: Validate_CH (version CVS)
PHP Version: 5.2.4 OS:
Roadmaps: 0.6.0    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 36 - 20 = ?

 
 [2008-10-28 01:50 UTC] doconnor (Daniel O'Connor)
Description: ------------ Unit tests don't work out of the box from CVS. Consider: $paths = array('@datadir/path/to/data', dirname(__FILE__) . 'path/to/data'); foreach ($paths as $path) { if file_exists, use that one } Test script: --------------- pear run-tests Expected result: ---------------- Tests pass Actual result: -------------- 148) /home/clockwerx/pear/Validate/tests/validate_CH.phpt --- Expected +++ Actual @@ -7,8 +7,26 @@ 96c4: NO Test postalCode with check against table (strong) -9658: YES + +Warning: file(@DATADIR@/Validate_CH/CH_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/CH.php on line 142 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/CH.php on line 142 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/CH.php on line 145 +9658: NO + +Warning: file(@DATADIR@/Validate_CH/CH_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/CH.php on line 142 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/CH.php on line 142 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/CH.php on line 145 9654: NO + +Warning: file(@DATADIR@/Validate_CH/CH_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/CH.php on line 142 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/CH.php on line 142 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/CH.php on line 145 96c4: NO Test ssn

Comments

 [2008-11-06 00:46 UTC] doconnor (Daniel O'Connor)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.