IncludePathLoaderTest.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Tool
  17. * @subpackage UnitTests
  18. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. require_once 'Zend/Tool/Framework/Loader/IncludePathLoader.php';
  23. require_once 'Zend/Tool/Framework/Manifest/Repository.php';
  24. require_once 'Zend/Tool/Framework/Action/Repository.php';
  25. require_once 'Zend/Tool/Framework/Provider/Repository.php';
  26. /**
  27. * @category Zend
  28. * @package Zend_Tool
  29. * @subpackage UnitTests
  30. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  31. * @license http://framework.zend.com/license/new-bsd New BSD License
  32. *
  33. * @group Zend_Tool
  34. * @group Zend_Tool_Framework
  35. * @group Zend_Tool_Framework_Loader
  36. */
  37. class Zend_Tool_Framework_Loader_IncludePathLoaderTest extends PHPUnit_Framework_TestCase
  38. {
  39. /**
  40. * @var Zend_Tool_Framework_Registry
  41. */
  42. protected $_registry = null;
  43. public function setUp()
  44. {
  45. }
  46. public function tearDown()
  47. {
  48. Zend_Tool_Framework_Registry::resetInstance();
  49. }
  50. /** running these tests need to happen in separate process */
  51. /**
  52. public function testLoaderFindsIncludePathFilesAreFound()
  53. {
  54. $loader = new Zend_Tool_Framework_Loader_IncludePathLoader();
  55. $loader->load();
  56. $files = $loader->getLoadRetrievedFiles();
  57. foreach ($files as $index => $file) {
  58. $files[$index] = substr($file, strpos($file, 'Zend'));
  59. }
  60. $this->assertContains('Zend/Tool/Framework/System/Manifest.php', $files);
  61. }
  62. public function testLoaderFindsIncludePathFilesAreLoaded()
  63. {
  64. $loader = new Zend_Tool_Framework_Loader_IncludePathLoader();
  65. $loader->load();
  66. $classes = $loader->getLoadLoadedClasses();
  67. $this->assertContains('Zend_Tool_Framework_System_Manifest', $classes);
  68. }
  69. */
  70. }