|
|
@@ -47,10 +47,6 @@ class Zend_Loader_AutoloaderMultiVersionTest extends PHPUnit_Framework_TestCase
|
|
|
|
|
|
public function setUp()
|
|
|
{
|
|
|
- if (!constant('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_ENABLED')) {
|
|
|
- $this->markTestSkipped();
|
|
|
- }
|
|
|
-
|
|
|
// Store original autoloaders
|
|
|
$this->loaders = spl_autoload_functions();
|
|
|
if (!is_array($this->loaders)) {
|
|
|
@@ -62,6 +58,10 @@ class Zend_Loader_AutoloaderMultiVersionTest extends PHPUnit_Framework_TestCase
|
|
|
// Store original include_path
|
|
|
$this->includePath = get_include_path();
|
|
|
|
|
|
+ if (!constant('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_ENABLED')) {
|
|
|
+ $this->markTestSkipped();
|
|
|
+ }
|
|
|
+
|
|
|
Zend_Loader_Autoloader::resetInstance();
|
|
|
$this->path = constant('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_PATH');
|
|
|
$this->latest = constant('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_LATEST');
|