No Description

AuthorElementCollectionTest.php 588B

12345678910111213141516171819
  1. <?php
  2. namespace PharIo\Manifest;
  3. use DOMDocument;
  4. class AuthorElementCollectionTest extends \PHPUnit\Framework\TestCase {
  5. public function testAuthorElementCanBeRetrievedFromCollection() {
  6. $dom = new DOMDocument();
  7. $dom->loadXML('<?xml version="1.0" ?><author xmlns="https://phar.io/xml/manifest/1.0" name="Reiner Zufall" email="reiner@zufall.de" />');
  8. $collection = new AuthorElementCollection($dom->childNodes);
  9. foreach($collection as $authorElement) {
  10. $this->assertInstanceOf(AuthorElement::class, $authorElement);
  11. }
  12. }
  13. }