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