// libraries_detect_dependencies() is a post-detect callback, so
// 'installed' is already set, when it is called. It sets the value to
// FALSE for missing or incompatible dependencies.
$library['installed']=TRUE;
libraries_detect_dependencies($library);
$this->assertTrue($library['installed'],"libraries_detect_dependencies() detects compatible version string: '$version_string' is compatible with '$version'");
$this->assertEqual($library['error'],'incompatible dependency',"libraries_detect_dependencies() detects incompatible version strings: '$version_string' is incompatible with '$version'");
}
// Instead of repeating this assertion for each version string, we just
// re-use the $library variable from the foreach loop.
$error_message=t('The version %dependency_version of the %dependency library is not compatible with the %library library.',array(