xarxaprod-wp-theme/vendor/wp-cli/mustangostang-spyc/tests/LoadTest.php

20 lines
535 B
PHP
Raw Permalink Normal View History

2024-01-09 16:13:20 +01:00
<?php
require_once ("../Spyc.php");
class LoadTest extends PHPUnit_Framework_TestCase {
public function testQuotes() {
$test_values = array(
"adjacent '''' \"\"\"\" quotes.",
"adjacent '''' quotes.",
"adjacent \"\"\"\" quotes.",
);
foreach($test_values as $value) {
$yaml = array($value);
$dump = Spyc::YAMLDump ($yaml);
$yaml_loaded = Spyc::YAMLLoad ($dump);
$this->assertEquals ($yaml, $yaml_loaded);
}
}
}