Development

Changeset 8973

You must first sign up to be able to contribute.

Changeset 8973

Show
Ignore:
Timestamp:
05/15/08 09:10:47 (2 months ago)
Author:
FabianLange
Message:

fixed sfWidgetFormSelectRadioTest.php test to run under windows as well (there was a implicit linebreak in the test.

Files:

Legend:

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

    r5963 r8973  
    1818// ->render() 
    1919$t->diag('->render()'); 
    20 $w = new sfWidgetFormSelectRadio(array('choices' => array('foo' => 'bar', 'foobar' => 'foo'))); 
    21 $output = '<ul class="radio_list"><li><input name="foo" type="radio" value="foo" id="foo_foo" />&nbsp;<label for="foo_foo">bar</label></li> 
    22 <li><input name="foo" type="radio" value="foobar" id="foo_foobar" checked="checked" />&nbsp;<label for="foo_foobar">foo</label></li></ul>'; 
     20$w = new sfWidgetFormSelectRadio(array('choices' => array('foo' => 'bar', 'foobar' => 'foo'), 'separator' => '')); 
     21$output = '<ul class="radio_list"><li><input name="foo" type="radio" value="foo" id="foo_foo" />&nbsp;<label for="foo_foo">bar</label></li>'. 
     22'<li><input name="foo" type="radio" value="foobar" id="foo_foobar" checked="checked" />&nbsp;<label for="foo_foobar">foo</label></li></ul>'; 
    2323$t->is($w->render('foo', 'foobar'), $output, '->render() renders a select tag with the value selected'); 
    2424