ExtElementTest.php 510B

12345678910111213141516171819202122
  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. }