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)    

 [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)


 [2008-11-06 11:25 UTC] doconnor (Daniel O'Connor)
Patch to skip if the DSN uses an extension that isn't avail @
 [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 by the end of next Sunday (CET). If this was a problem with the 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.