Development

Changeset 24528

You must first sign up to be able to contribute.

Changeset 24528

Show
Ignore:
Timestamp:
11/29/09 15:37:36 (3 years ago)
Author:
fabien
Message:

[yaml] added some tests for octal values (closes #7067)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • components/yaml/branches/1.0/test/fixtures/sfTests.yml

    r19674 r24528  
    109109php: | 
    110110  array(1 => 'foo', 0 => 'bar') 
     111--- 
     112test: Octal 
     113brief: as in spec example 2.19, octal value is converted 
     114yaml: | 
     115  foo: 0123 
     116php: | 
     117  array('foo' => 83) 
     118--- 
     119test: Octal strings 
     120brief: Octal notation in a string must remain a string 
     121yaml: | 
     122  foo: "0123" 
     123php: | 
     124  array('foo' => '0123') 
     125--- 
     126test: Octal strings 
     127brief: Octal notation in a string must remain a string 
     128yaml: | 
     129  foo: '0123' 
     130php: | 
     131  array('foo' => '0123') 
     132--- 
     133test: Octal strings 
     134brief: Octal notation in a string must remain a string 
     135yaml: | 
     136  foo: | 
     137    0123 
     138php: | 
     139  array('foo' => "0123\n") 
  • components/yaml/branches/1.0/test/sfYamlDumperTest.php

    r24527 r24528  
    1616sfYaml::setSpecVersion('1.1'); 
    1717 
    18 $t = new lime_test(144); 
     18$t = new lime_test(148); 
    1919 
    2020$parser = new sfYamlParser(); 
  • components/yaml/branches/1.0/test/sfYamlParserTest.php

    r24527 r24528  
    1515sfYaml::setSpecVersion('1.1'); 
    1616 
    17 $t = new lime_test(144); 
     17$t = new lime_test(148); 
    1818 
    1919$parser = new sfYamlParser();