Less strtolower, more in_array()
[spyc.git] / tests / DumpTest.php
blob520721f409cd6e2ed0b68cb0589c0dbfde7af417
1 <?php
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() {
14 $Spyc = new Spyc();
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);