Mercurial > hg > isophonics-drupal-site
comparison vendor/phar-io/manifest/tests/xml/ComponentElementTest.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 ComponentElementTest extends \PHPUnit_Framework_TestCase { | |
6 /** | |
7 * @var ComponentElement | |
8 */ | |
9 private $component; | |
10 | |
11 protected function setUp() { | |
12 $dom = new \DOMDocument(); | |
13 $dom->loadXML('<?xml version="1.0" ?><component xmlns="https://phar.io/xml/manifest/1.0" name="phar-io/phive" version="0.6.0" />'); | |
14 $this->component = new ComponentElement($dom->documentElement); | |
15 } | |
16 | |
17 public function testNameCanBeRetrieved() { | |
18 $this->assertEquals('phar-io/phive', $this->component->getName()); | |
19 } | |
20 | |
21 public function testEmailCanBeRetrieved() { | |
22 $this->assertEquals('0.6.0', $this->component->getVersion()); | |
23 } | |
24 | |
25 } |