<?php /* * This file is part of the symfony package. * (c) Fabien Potencier <*****@*****.**> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require_once __DIR__ . '/../../../bootstrap.php'; use Symfony\Components\YAML\YAML; use Symfony\Components\YAML\Parser; use Symfony\Components\YAML\Dumper; YAML::setSpecVersion('1.1'); $t = new LimeTest(148); $parser = new Parser(); $dumper = new Dumper(); $path = __DIR__ . '/../../../../fixtures/Symfony/Components/YAML'; $files = $parser->parse(file_get_contents($path . '/index.yml')); foreach ($files as $file) { $t->diag($file); $yamls = file_get_contents($path . '/' . $file . '.yml'); // split YAMLs documents foreach (preg_split('/^---( %YAML\\:1\\.0)?/m', $yamls) as $yaml) { if (!$yaml) { continue; } $test = $parser->parse($yaml); if (isset($test['dump_skip']) && $test['dump_skip']) { continue; } else {