+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
* $Id$
*
*/
'CiviSeleniumTestCase',
'CiviTestSuite',
'CiviUnitTestCase',
+ 'CiviEndToEndTestCase',
'Contact',
'ContributionPage',
'Custom',
return;
}
$civicrm_base_path = dirname(dirname(__DIR__));
+ $composer_autoload = "$civicrm_base_path/vendor/autoload.php";
- require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php';
+ if (file_exists($composer_autoload)) {
+ require_once $composer_autoload;
+ }
// we do this to prevent a autoloader errors with joomla / 3rd party packages
// use absolute path since we dont know the content of include_path as yet
);
$include_paths = implode(PATH_SEPARATOR, $include_paths);
set_include_path($include_paths . PATH_SEPARATOR . get_include_path());
- require_once "$civicrm_base_path/vendor/autoload.php";
+ // @todo Why do we need to load this again?
+ if (file_exists($composer_autoload)) {
+ require_once $composer_autoload;
+ }
}
/**
if (
// Only load classes that clearly belong to CiviCRM.
// Note: api/v3 does not use classes, but api_v3's test-suite does
- (0 === strncmp($class, 'CRM_', 4) || 0 === strncmp($class, 'api_v3_', 7) || 0 === strncmp($class, 'WebTest_', 8)) &&
+ (0 === strncmp($class, 'CRM_', 4) || 0 === strncmp($class, 'api_v3_', 7) || 0 === strncmp($class, 'WebTest_', 8) || 0 === strncmp($class, 'E2E_', 4)) &&
// Do not load PHP 5.3 namespaced classes.
// (in a future version, maybe)
FALSE === strpos($class, '\\')