Nenhuma descrição

example-01.php 711B

123456789101112131415161718192021222324
  1. <?php
  2. /*
  3. * This file is part of PharIo\Manifest.
  4. *
  5. * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. use PharIo\Manifest\ManifestLoader;
  11. use PharIo\Manifest\ManifestSerializer;
  12. require __DIR__ . '/../vendor/autoload.php';
  13. $manifest = ManifestLoader::fromFile(__DIR__ . '/../tests/_fixture/phpunit-5.6.5.xml');
  14. echo sprintf(
  15. "Manifest for %s (%s):\n\n",
  16. $manifest->getName(),
  17. $manifest->getVersion()->getVersionString()
  18. );
  19. echo (new ManifestSerializer)->serializeToString($manifest);