Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
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 | |
11 use PharIo\Manifest\ManifestLoader; | |
12 use PharIo\Manifest\ManifestSerializer; | |
13 | |
14 require __DIR__ . '/../vendor/autoload.php'; | |
15 | |
16 $manifest = ManifestLoader::fromFile(__DIR__ . '/../tests/_fixture/phpunit-5.6.5.xml'); | |
17 | |
18 echo sprintf( | |
19 "Manifest for %s (%s):\n\n", | |
20 $manifest->getName(), | |
21 $manifest->getVersion()->getVersionString() | |
22 ); | |
23 echo (new ManifestSerializer)->serializeToString($manifest); |