comparison vendor/phar-io/manifest/tests/xml/ExtElementTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
1 <?php
2
3 namespace PharIo\Manifest;
4
5 class ExtElementTest extends \PHPUnit_Framework_TestCase {
6 /**
7 * @var ExtElement
8 */
9 private $ext;
10
11 protected function setUp() {
12 $dom = new \DOMDocument();
13 $dom->loadXML('<?xml version="1.0" ?><ext xmlns="https://phar.io/xml/manifest/1.0" name="dom" />');
14 $this->ext = new ExtElement($dom->documentElement);
15 }
16
17 public function testNameCanBeRetrieved() {
18 $this->assertEquals('dom', $this->ext->getName());
19 }
20
21 }