ComponentFileTest.php 639 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Component\Test\Unit;
  7. use Magento\Framework\Component\ComponentFile;
  8. class ComponentFileTest extends \PHPUnit\Framework\TestCase
  9. {
  10. public function testGetters()
  11. {
  12. $type = 'type';
  13. $name = 'name';
  14. $path = 'path';
  15. $component = new ComponentFile($type, $name, $path);
  16. $this->assertSame($type, $component->getComponentType());
  17. $this->assertSame($name, $component->getComponentName());
  18. $this->assertSame($path, $component->getFullPath());
  19. }
  20. }