Changeset 6216
- Timestamp:
- 11/30/07 01:12:51 (1 year ago)
- Files:
-
- trunk/test/unit/widget/sfWidgetFormDateTest.php (modified) (2 diffs)
- trunk/test/unit/widget/sfWidgetFormDateTimeTest.php (modified) (2 diffs)
- trunk/test/unit/widget/sfWidgetFormTimeTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/unit/widget/sfWidgetFormDateTest.php
r5950 r6216 55 55 // separator option 56 56 $t->diag('separator option'); 57 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling-> firstChild->nodeValue, '/', '->render() renders 3 selects with a default / as a separator');57 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->nodeValue, '/', '->render() renders 3 selects with a default / as a separator'); 58 58 $t->is($css->matchSingle('#foo_month')->getNode()->nextSibling->nodeValue, '/', '->render() renders 3 selects with a default / as a separator'); 59 59 … … 61 61 $dom->loadHTML($w->render('foo', '2005-10-15')); 62 62 $css = new sfDomCssSelector($dom); 63 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling-> firstChild->nodeValue, '#', '__construct() can change the default separator');63 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->nodeValue, '#', '__construct() can change the default separator'); 64 64 $t->is($css->matchSingle('#foo_month')->getNode()->nextSibling->nodeValue, '#', '__construct() can change the default separator'); 65 65 trunk/test/unit/widget/sfWidgetFormDateTimeTest.php
r6197 r6216 64 64 // date and time separator option 65 65 $t->diag('date and time separator option'); 66 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling-> firstChild->nodeValue, '/', '->render() renders 3 selects with a default / as a separator');66 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->nodeValue, '/', '->render() renders 3 selects with a default / as a separator'); 67 67 $t->is($css->matchSingle('#foo_month')->getNode()->nextSibling->nodeValue, '/', '->render() renders 3 selects with a default / as a separator'); 68 68 $t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling->nodeValue, ':', '->render() renders 3 selects with a default : as a separator'); … … 74 74 $dom->loadHTML($w->render('foo', '2005-10-15 12:30:35')); 75 75 $css = new sfDomCssSelector($dom); 76 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling-> firstChild->nodeValue, '-', '__construct() can change the default separator');76 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->nodeValue, '-', '__construct() can change the default separator'); 77 77 $t->is($css->matchSingle('#foo_month')->getNode()->nextSibling->nodeValue, '-', '__construct() can change the default separator'); 78 78 $t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling->nodeValue, '!', '__construct() can change the default separator'); trunk/test/unit/widget/sfWidgetFormTimeTest.php
r5950 r6216 54 54 // separator option 55 55 $t->diag('separator option'); 56 $t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling-> firstChild->nodeValue, ':', '->render() renders 3 selects with a default : as a separator');56 $t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling->nodeValue, ':', '->render() renders 3 selects with a default : as a separator'); 57 57 $t->is($css->matchSingle('#foo_minute')->getNode()->nextSibling->nodeValue, ':', '->render() renders 3 selects with a default : as a separator'); 58 58 … … 60 60 $dom->loadHTML($w->render('foo', '12:30:35')); 61 61 $css = new sfDomCssSelector($dom); 62 $t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling-> firstChild->nodeValue, '#', '__construct() can change the default separator');62 $t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling->nodeValue, '#', '__construct() can change the default separator'); 63 63 $t->is($css->matchSingle('#foo_minute')->getNode()->nextSibling->nodeValue, '#', '__construct() can change the default separator'); 64 64