Mercurial > hg > cmmr2012-drupal-site
comparison vendor/phar-io/manifest/tests/xml/ComponentElementCollectionTest.php @ 2:5311817fb629
Theme updates
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 13:19:18 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:0b0e5f3b1e83 | 2:5311817fb629 |
---|---|
1 <?php | |
2 | |
3 namespace PharIo\Manifest; | |
4 | |
5 use DOMDocument; | |
6 | |
7 class ComponentElementCollectionTest extends \PHPUnit_Framework_TestCase { | |
8 public function testComponentElementCanBeRetrievedFromCollection() { | |
9 $dom = new DOMDocument(); | |
10 $dom->loadXML('<?xml version="1.0" ?><component xmlns="https://phar.io/xml/manifest/1.0" />'); | |
11 $collection = new ComponentElementCollection($dom->childNodes); | |
12 | |
13 foreach($collection as $componentElement) { | |
14 $this->assertInstanceOf(ComponentElement::class, $componentElement); | |
15 } | |
16 } | |
17 | |
18 } |