Development

Changeset 5743

You must first sign up to be able to contribute.

Changeset 5743

Show
Ignore:
Timestamp:
10/29/07 16:42:50 (2 years ago)
Author:
fabien
Message:

added some unit tests to sfYamlInside

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/unit/util/sfYamlInlineTest.php

    r5727 r5743  
    1111require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 
    1212 
    13 $t = new lime_test(94, new lime_output_color()); 
     13$t = new lime_test(98, new lime_output_color()); 
    1414 
    1515// ::load() 
     
    4949  // nested sequences and mappings 
    5050  '[foo, [bar, foo]]' => array('foo', array('bar', 'foo')), 
     51  '[foo, {bar: foo}]' => array('foo', array('bar' => 'foo')), 
     52  '{ foo: {bar: foo} }' => array('foo' => array('bar' => 'foo')), 
     53  '{ foo: [bar, foo] }' => array('foo' => array('bar', 'foo')), 
     54 
    5155  '[  foo, [  bar, foo  ]  ]' => array('foo', array('bar', 'foo')), 
    5256 
     57  '[{ foo: {bar: foo} }]' => array(array('foo' => array('bar' => 'foo'))), 
     58 
    5359  '[foo, [bar, [foo, [bar, foo]], foo]]' => array('foo', array('bar', array('foo', array('bar', 'foo')), 'foo')), 
    54  
    55   '{ foo: {bar: foo} }' => array('foo' => array('bar' => 'foo')), 
    56  
    57   '[foo, {bar: foo}]' => array('foo', array('bar' => 'foo')), 
    5860 
    5961  '[foo, {bar: foo, foo: [foo, {bar: foo}]}, [foo, {bar: foo}]]' => array('foo', array('bar' => 'foo', 'foo' => array('foo', array('bar' => 'foo'))), array('foo', array('bar' => 'foo'))), 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.