Mercurial > hg > isophonics-drupal-site
view vendor/phar-io/manifest/tests/xml/ExtElementTest.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 1fec387a4317 |
children |
line wrap: on
line source
<?php namespace PharIo\Manifest; class ExtElementTest extends \PHPUnit_Framework_TestCase { /** * @var ExtElement */ private $ext; protected function setUp() { $dom = new \DOMDocument(); $dom->loadXML('<?xml version="1.0" ?><ext xmlns="https://phar.io/xml/manifest/1.0" name="dom" />'); $this->ext = new ExtElement($dom->documentElement); } public function testNameCanBeRetrieved() { $this->assertEquals('dom', $this->ext->getName()); } }