*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
$t = new lime_test(7);
$w = new sfWidgetFormInputCheckbox();
// ->render()
$t->diag('->render()');
$t->is($w->render('foo', 1), '', '->render() renders the widget as HTML');
$t->is($w->render('foo', null), '', '->render() renders the widget as HTML');
$t->is($w->render('foo', false), '', '->render() renders the widget as HTML');
$t->is($w->render('foo', 0, array('value' => '0')), '', '->render() renders the widget as HTML');
$w = new sfWidgetFormInputCheckbox(array(), array('value' => 'bar'));
$t->is($w->render('foo', null), '', '->render() renders the widget as HTML');
$t->is($w->render('foo', null, array('value' => 'baz')), '', '->render() renders the widget as HTML');
$t->is($w->render('foo', 'bar'), '', '->render() renders the widget as HTML');