Mercurial > hg > isophonics-drupal-site
comparison vendor/phar-io/manifest/tests/xml/ExtensionElementTest.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 ExtensionElementTest extends \PHPUnit_Framework_TestCase { | |
6 /** | |
7 * @var ExtensionElement | |
8 */ | |
9 private $extension; | |
10 | |
11 protected function setUp() { | |
12 $dom = new \DOMDocument(); | |
13 $dom->loadXML('<?xml version="1.0" ?><extension xmlns="https://phar.io/xml/manifest/1.0" for="phar-io/phive" compatible="~0.6" />'); | |
14 $this->extension = new ExtensionElement($dom->documentElement); | |
15 } | |
16 | |
17 public function testNForCanBeRetrieved() { | |
18 $this->assertEquals('phar-io/phive', $this->extension->getFor()); | |
19 } | |
20 | |
21 public function testCompatibleVersionConstraintCanBeRetrieved() { | |
22 $this->assertEquals('~0.6', $this->extension->getCompatible()); | |
23 } | |
24 | |
25 } |