3 require_once ("../spyc.php");
5 class DumpTest
extends PHPUnit_Framework_TestCase
{
6 public function testDump() {
7 $yaml = Spyc
::YAMLLoad('../spyc.yaml');
8 $dump = Spyc
::YAMLDump ($yaml);
9 $yaml_after_dump = Spyc
::YAMLLoad ($dump);
10 $this->assertEquals ($yaml, $yaml_after_dump);
13 public function testDumpWithQuotes() {
15 $Spyc->setting_dump_force_quotes
= true;
16 $yaml = $Spyc->YAMLLoad('../spyc.yaml');
17 $dump = $Spyc->YAMLDump ($yaml);
18 $yaml_after_dump = Spyc
::YAMLLoad ($dump);
19 $this->assertEquals ($yaml, $yaml_after_dump);