Mercurial > hg > isophonics-drupal-site
comparison vendor/phar-io/manifest/tests/xml/AuthorElementCollectionTest.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 use DOMDocument; | |
6 | |
7 class AuthorElementCollectionTest extends \PHPUnit_Framework_TestCase { | |
8 public function testAuthorElementCanBeRetrievedFromCollection() { | |
9 $dom = new DOMDocument(); | |
10 $dom->loadXML('<?xml version="1.0" ?><author xmlns="https://phar.io/xml/manifest/1.0" name="Reiner Zufall" email="reiner@zufall.de" />'); | |
11 $collection = new AuthorElementCollection($dom->childNodes); | |
12 | |
13 foreach($collection as $authorElement) { | |
14 $this->assertInstanceOf(AuthorElement::class, $authorElement); | |
15 } | |
16 } | |
17 | |
18 } |