Testbot gets a PDO exception module_load_include(), probably because its underlying implementation attempts to touch a database, which is not available for unit tests.

Comments

iamEAP’s picture

Status: Active » Fixed

Fixed, with a lot of education on PHP autoloaders. Summary:

  • Calling class_exists() without a FALSE second parameter results in all registered autoloaders being fired. This is bad when unit testing because Drupal's registered auto loader will attempt to connect to a non-existent DB.
  • Calling include() or require() or their _once() derivatives on a file that includes a class that extends another class will result in PHP calling all registered autoloaders (same problem above).

With that, releasing 7.x-1.0.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.