Beispiel #1
0
 public function testPassingZfVersionAutoloaderInformationConfiguresAutoloader()
 {
     if (!constant('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_ENABLED')) {
         $this->markTestSkipped();
     }
     if (!constant('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_LATEST')) {
         $this->markTestSkipped();
     }
     $path = constant('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_PATH');
     $latest = constant('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_LATEST');
     $application = new Application\Application('production', array('autoloaderZfPath' => $path, 'autoloaderZfVersion' => 'latest'));
     $autoloader = $application->getAutoloader();
     $actual = $autoloader->getZfPath();
     $this->assertContains($latest, $actual);
 }