cakephp/cakephp — pull request #593 by dkullmann (2012-04-02 01:06:46+00:00)
Title: 2.1 - Added Missing PDO Driver Detection

People in IRC always think the DB connection isn't working and are confused by this message. A surprising amount of people don't have the driver installed and have trouble, a new except w/clear messaging would be useful

I also tried to write a test using static mocks to mock PDO::getAvailableDrivers but it didn't work well:

http://bin.cakephp.org/view/1815762639

http://sebastian-bergmann.de/archives/883-Stubbing-and-Mocking-Static-Methods.html