scratch – Blame information for rev 66
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
66 | office | 1 | <?php |
2 | |||
3 | require_once ("../Spyc.php"); |
||
4 | |||
5 | class LoadTest extends PHPUnit_Framework_TestCase { |
||
6 | public function testQuotes() { |
||
7 | $test_values = array( |
||
8 | "adjacent '''' \"\"\"\" quotes.", |
||
9 | "adjacent '''' quotes.", |
||
10 | "adjacent \"\"\"\" quotes.", |
||
11 | ); |
||
12 | foreach($test_values as $value) { |
||
13 | $yaml = array($value); |
||
14 | $dump = Spyc::YAMLDump ($yaml); |
||
15 | $yaml_loaded = Spyc::YAMLLoad ($dump); |
||
16 | $this->assertEquals ($yaml, $yaml_loaded); |
||
17 | } |
||
18 | } |
||
19 | } |