Changeset 10574
- Timestamp:
- 08/01/08 15:08:08 (1 year ago)
- Files:
-
- branches/1.1/lib/yaml/sfYamlDumper.class.php (modified) (1 diff)
- branches/1.1/test/unit/yaml/fixtures/sfTests.yml (modified) (1 diff)
- branches/1.1/test/unit/yaml/sfYamlDumperTest.php (modified) (1 diff)
- branches/1.1/test/unit/yaml/sfYamlParserTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/yaml/sfYamlDumper.class.php
r8488 r10574 41 41 else 42 42 { 43 $isAHash = count(array_diff_key($input, array_fill(0, count($input), true)));43 $isAHash = array_keys($input) !== range(0, count($input) - 1); 44 44 45 45 foreach ($input as $key => $value) branches/1.1/test/unit/yaml/fixtures/sfTests.yml
r8869 r10574 92 92 php: | 93 93 array('foo', array('bar' => array('bar' => 'foo'))) 94 --- 95 test: A sequence with an unordered array 96 brief: > 97 A sequence with an unordered array 98 yaml: | 99 1: foo 100 0: bar 101 php: | 102 array(1 => 'foo', 0 => 'bar') branches/1.1/test/unit/yaml/sfYamlDumperTest.php
r8924 r10574 13 13 require_once(dirname(__FILE__).'/../../../lib/yaml/sfYamlDumper.class.php'); 14 14 15 $t = new lime_test(14 0, new lime_output_color());15 $t = new lime_test(141, new lime_output_color()); 16 16 17 17 $parser = new sfYamlParser(); branches/1.1/test/unit/yaml/sfYamlParserTest.php
r8923 r10574 12 12 require_once(dirname(__FILE__).'/../../../lib/yaml/sfYamlParser.class.php'); 13 13 14 $t = new lime_test(14 0, new lime_output_color());14 $t = new lime_test(141, new lime_output_color()); 15 15 16 16 $parser = new sfYamlParser();

