Changeset 8286
- Timestamp:
- 04/04/08 15:07:24 (8 months ago)
- Files:
-
- branches/1.1/lib/yaml/sfYamlInline.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/sfYamlInline.class.php
r8155 r8286 383 383 case 0 == strcasecmp($scalar, '-.inf'): 384 384 return log(0); 385 case preg_match('/^(-|\+)?[0-9 \,\.]+$/', $scalar):385 case preg_match('/^(-|\+)?[0-9,]+(\.[0-9]+)?$/', $scalar): 386 386 return floatval(str_replace(',', '', $scalar)); 387 387 case preg_match(self::getTimestampRegex(), $scalar): branches/1.1/test/unit/yaml/fixtures/sfTests.yml
r7909 r8286 75 75 php: | 76 76 array('foo' => array('bar' => "foo\n\n\n \nbar\n")) 77 --- 78 test: IP addresses 79 brief: > 80 IP addresses 81 yaml: | 82 foo: 10.0.0.2 83 php: | 84 array('foo' => '10.0.0.2') branches/1.1/test/unit/yaml/sfYamlDumperTest.php
r8155 r8286 13 13 require_once(dirname(__FILE__).'/../../../lib/yaml/sfYamlDumper.class.php'); 14 14 15 $t = new lime_test(13 8, new lime_output_color());15 $t = new lime_test(139, new lime_output_color()); 16 16 17 17 $parser = new sfYamlParser(); branches/1.1/test/unit/yaml/sfYamlParserTest.php
r8155 r8286 12 12 require_once(dirname(__FILE__).'/../../../lib/yaml/sfYamlParser.class.php'); 13 13 14 $t = new lime_test(13 8, new lime_output_color());14 $t = new lime_test(139, new lime_output_color()); 15 15 16 16 $parser = new sfYamlParser();