Development

Changeset 7049

You must first sign up to be able to contribute.

Changeset 7049

Show
Ignore:
Timestamp:
01/14/08 15:16:45 (10 months ago)
Author:
fabien
Message:

added unit test for sfWidgetFormSchemaDecorator::clone()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/test/unit/widget/sfWidgetFormSchemaDecoratorTest.php

    r7046 r7049  
    1111require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 
    1212 
    13 $t = new lime_test(15, new lime_output_color()); 
     13$t = new lime_test(16, new lime_output_color()); 
    1414 
    1515$w1 = new sfWidgetFormInput(); 
     
    6767$t->is($w['w1'], null, 'sfWidgetFormSchemaDecorator implements the ArrayAccess interface for the fields'); 
    6868$t->is($ws['w1'], null, 'sfWidgetFormSchemaDecorator implements the ArrayAccess interface for the fields'); 
     69 
     70// __clone() 
     71$t->diag('__clone()'); 
     72$w1 = clone $w; 
     73$t->ok($w1->getWidget() !== $w->getWidget(), '__clone() clones the embedded widget');