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

Bug #14877 Can't run unit tests from CVS without configuration
Submitted: 2008-10-26 03:17 UTC
From: doconnor Assigned: doconnor
Status: Closed Package: Auth_PrefManager (version CVS)
PHP Version: 5.2.4 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 49 + 7 = ?

 
 [2008-10-26 03:17 UTC] doconnor (Daniel O'Connor)
Description: ------------ At the moment, you have to configure a DSN in setup.php to run the tests. Really, these tests should be marked as skipped if we can't connect to a database. Consider for setup.php: <?php if (file_exists('config-local.php')) { include 'config-local.php'; // Expect I define a $dsn = "mysql://user:pass@server/db"; } ?> and -- SKIPIF -- if (file_exists('config-local.php')) { print "Skip No config-local.php found, no database available"; } -- FILE -- (rest of test case here)

Comments

 [2008-11-06 11:25 UTC] doconnor (Daniel O'Connor)
Patch to skip if the DSN uses an extension that isn't avail @ http://pastebin.com/f2d70c357
 [2008-12-27 06:45 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.