Changeset 23743
- Timestamp:
- 11/10/09 01:32:01 (4 years ago)
- Files:
-
- components/yaml/trunk/test/fixtures/sfComments.yml (modified) (1 diff)
- components/yaml/trunk/test/sfYamlDumperTest.php (modified) (7 diffs)
- components/yaml/trunk/test/sfYamlParserTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
components/yaml/trunk/test/fixtures/sfComments.yml
r16752 r23743 32 32 php: | 33 33 array('foo' => array('foo' => 'bar')) 34 --- 35 test: 'Value starting with a #' 36 brief: > 37 'Value starting with a #' 38 yaml: | 39 foo: '#bar' 40 php: | 41 array('foo' => '#bar') components/yaml/trunk/test/sfYamlDumperTest.php
r21883 r23743 16 16 sfYaml::setSpecVersion('1.1'); 17 17 18 $t = new lime_test(14 2);18 $t = new lime_test(143); 19 19 20 20 $parser = new sfYamlParser(); … … 58 58 $array = array( 59 59 '' => 'bar', 60 'foo' => '#bar', 60 61 'foo\'bar' => array(), 61 62 'bar' => array(1, 'foo'), … … 71 72 72 73 $expected = <<<EOF 73 { '': bar, 'foo''bar': { }, bar: [1, foo], foobar: { foo: bar, bar: [1, foo], foobar: { foo: bar, bar: [1, foo] } } }74 { '': bar, foo: '#bar', 'foo''bar': { }, bar: [1, foo], foobar: { foo: bar, bar: [1, foo], foobar: { foo: bar, bar: [1, foo] } } } 74 75 EOF; 75 76 $t->is($dumper->dump($array, -10), $expected, '->dump() takes an inline level argument'); … … 78 79 $expected = <<<EOF 79 80 '': bar 81 foo: '#bar' 80 82 'foo''bar': { } 81 83 bar: [1, foo] … … 87 89 $expected = <<<EOF 88 90 '': bar 91 foo: '#bar' 89 92 'foo''bar': { } 90 93 bar: … … 101 104 $expected = <<<EOF 102 105 '': bar 106 foo: '#bar' 103 107 'foo''bar': { } 104 108 bar: … … 119 123 $expected = <<<EOF 120 124 '': bar 125 foo: '#bar' 121 126 'foo''bar': { } 122 127 bar: components/yaml/trunk/test/sfYamlParserTest.php
r21883 r23743 15 15 sfYaml::setSpecVersion('1.1'); 16 16 17 $t = new lime_test(14 2);17 $t = new lime_test(143); 18 18 19 19 $parser = new sfYamlParser();