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

Bug #14868 Can't run unit tests from CVS without installing package
Submitted: 2008-10-25 03:52 UTC Modified: 2008-12-06 09:39 UTC
From: doconnor Assigned: doconnor
Status: Closed Package: Validate_AT (version CVS)
PHP Version: 5.2.4 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2008-10-25 03:52 UTC] doconnor (Daniel O'Connor)
Description: ------------ Basically, @DATADIR@ works fine when you install the package, but you can't run the tests from CVS. Consider: $paths = array('@DATADIR@', dirname(__FILE__) . '/path/to/data/in/cvs'); foreach ($paths as $path) { if (file_exists($path)) { // Use this one. } } Actual result: -------------- 325) /home/clockwerx/pear/Validate/tests/validate_AT.phpt --- Expected +++ Actual @@ -30,13 +30,61 @@ _ Value State Return V = validation result is right X = validation result is wrong - V 7033 : OK OK - V 7000 : OK OK - V 4664 : OK OK - V 2491 : OK OK + +Warning: file(@DATADIR@/Validate_AT/AT_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/AT.php on line 77 +!X!7033 : OK KO + +Warning: file(@DATADIR@/Validate_AT/AT_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/AT.php on line 77 +!X!7000 : OK KO + +Warning: file(@DATADIR@/Validate_AT/AT_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/AT.php on line 77 +!X!4664 : OK KO + +Warning: file(@DATADIR@/Validate_AT/AT_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/AT.php on line 77 +!X!2491 : OK KO + +Warning: file(@DATADIR@/Validate_AT/AT_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/AT.php on line 77 V 1000 : KO KO + +Warning: file(@DATADIR@/Validate_AT/AT_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/AT.php on line 77 V 9999 : KO KO + +Warning: file(@DATADIR@/Validate_AT/AT_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/AT.php on line 77 V abc : KO KO + +Warning: file(@DATADIR@/Validate_AT/AT_postcodes.txt): failed to open stream: No such file or directory in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: array_map(): Argument #2 should be an array in /home/clockwerx/pear/Validate/Validate/AT.php on line 74 + +Warning: in_array(): Wrong datatype for second argument in /home/clockwerx/pear/Validate/Validate/AT.php on line 77 V a7000 : KO KO --------- Test Validate_AT::postalCode

Comments

 [2008-10-25 03:52 UTC] doconnor (Daniel O'Connor)
(Take a look at Bug #14867 's patch too)
 [2008-12-06 09:39 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. Fixed in CVS after no response from maintainer (Nov 5th to now)