ExtElementTest.php 510 B

123456789101112131415161718192021
  1. <?php
  2. namespace PharIo\Manifest;
  3. class ExtElementTest extends \PHPUnit\Framework\TestCase {
  4. /**
  5. * @var ExtElement
  6. */
  7. private $ext;
  8. protected function setUp() {
  9. $dom = new \DOMDocument();
  10. $dom->loadXML('<?xml version="1.0" ?><ext xmlns="https://phar.io/xml/manifest/1.0" name="dom" />');
  11. $this->ext = new ExtElement($dom->documentElement);
  12. }
  13. public function testNameCanBeRetrieved() {
  14. $this->assertEquals('dom', $this->ext->getName());
  15. }
  16. }