view 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
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());
    }

}