SILENT KILLERPanel

Current Path: > > opt > cloudlinux > alt-php54 > root > usr > share > pear > test > Yaml > Symfony > Component > Yaml > > Tests


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/alt-php54/root/usr/share/pear/test/Yaml/Symfony/Component/Yaml//Tests

NameTypeSizeLast ModifiedActions
Fixtures Directory - -
DumperTest.php File 5270 bytes December 18 2019 11:22:58.
InlineTest.php File 9563 bytes December 18 2019 11:22:58.
ParseExceptionTest.php File 937 bytes December 18 2019 11:22:58.
ParserTest.php File 12912 bytes December 18 2019 11:22:58.
YamlTest.php File 869 bytes December 18 2019 11:22:58.

Reading File: //opt/cloudlinux/alt-php54/root/usr/share/pear/test/Yaml/Symfony/Component/Yaml//Tests/YamlTest.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Yaml\Tests;

use Symfony\Component\Yaml\Yaml;

class YamlTest extends \PHPUnit_Framework_TestCase
{
    public function testParseAndDump()
    {
        $data = array('lorem' => 'ipsum', 'dolor' => 'sit');
        $yml = Yaml::dump($data);
        $parsed = Yaml::parse($yml);
        $this->assertEquals($data, $parsed);

        $filename = __DIR__.'/Fixtures/index.yml';
        $contents = file_get_contents($filename);
        $parsedByFilename = Yaml::parse($filename);
        $parsedByContents = Yaml::parse($contents);
        $this->assertEquals($parsedByFilename, $parsedByContents);
    }
}

SILENT KILLER Tool