Mercurial > hg > isophonics-drupal-site
view vendor/phar-io/manifest/tests/xml/AuthorElementCollectionTest.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 1fec387a4317 |
children |
line wrap: on
line source
<?php namespace PharIo\Manifest; use DOMDocument; class AuthorElementCollectionTest extends \PHPUnit_Framework_TestCase { public function testAuthorElementCanBeRetrievedFromCollection() { $dom = new DOMDocument(); $dom->loadXML('<?xml version="1.0" ?><author xmlns="https://phar.io/xml/manifest/1.0" name="Reiner Zufall" email="reiner@zufall.de" />'); $collection = new AuthorElementCollection($dom->childNodes); foreach($collection as $authorElement) { $this->assertInstanceOf(AuthorElement::class, $authorElement); } } }