Bimba.git

ref: c0cdb1186a8135521b2f75fdfdd6fd8d712a25ff

converter/server/vendor/mustangostang/spyc/tests/LoadTest.php


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<?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);
        }
    }
}