IncludePathLoaderTest.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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-2009 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 dirname(__FILE__) . '/../../../../TestHelper.php';
  23. require_once 'Zend/Tool/Framework/Loader/IncludePathLoader.php';
  24. require_once 'Zend/Tool/Framework/Manifest/Repository.php';
  25. require_once 'Zend/Tool/Framework/Action/Repository.php';
  26. require_once 'Zend/Tool/Framework/Provider/Repository.php';
  27. /**
  28. * @category Zend
  29. * @package Zend_Tool
  30. * @subpackage UnitTests
  31. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  32. * @license http://framework.zend.com/license/new-bsd New BSD License
  33. *
  34. * @group Zend_Tool
  35. * @group Zend_Tool_Framework
  36. * @group Zend_Tool_Framework_Loader
  37. */
  38. class Zend_Tool_Framework_Loader_IncludePathLoaderTest extends PHPUnit_Framework_TestCase
  39. {
  40. /**
  41. * @var Zend_Tool_Framework_Registry
  42. */
  43. protected $_registry = null;
  44. public function setUp()
  45. {
  46. }
  47. public function tearDown()
  48. {
  49. Zend_Tool_Framework_Registry::resetInstance();
  50. }
  51. /** running these tests need to happen in separate process */
  52. /**
  53. public function testLoaderFindsIncludePathFilesAreFound()
  54. {
  55. $loader = new Zend_Tool_Framework_Loader_IncludePathLoader();
  56. $loader->load();
  57. $files = $loader->getLoadRetrievedFiles();
  58. foreach ($files as $index => $file) {
  59. $files[$index] = substr($file, strpos($file, 'Zend'));
  60. }
  61. $this->assertContains('Zend/Tool/Framework/System/Manifest.php', $files);
  62. }
  63. public function testLoaderFindsIncludePathFilesAreLoaded()
  64. {
  65. $loader = new Zend_Tool_Framework_Loader_IncludePathLoader();
  66. $loader->load();
  67. $classes = $loader->getLoadLoadedClasses();
  68. $this->assertContains('Zend_Tool_Framework_System_Manifest', $classes);
  69. }
  70. */
  71. }