public function checkboxChecked($field, TraversableElement $container = null)
    {
        $node = $this->fieldExists($field, $container);

        $this->assert($node->isChecked(), sprintf('Checkbox "%s" is not checked, but it should be.', $field));
    }
public function checkboxChecked($field, TraversableElement $container = null)
    {
        $node = $this->fieldExists($field, $container);

        $this->assert($node->isChecked(), sprintf('Checkbox "%s" is not checked, but it should be.', $field));
    }
public function checkboxChecked ( $ field , TraversableElement $ container = null ) { $ node = $ this -> fieldExists ( $ field , $ container ) ; $ this -> assert ( $ node -> isChecked ( ) , sprintf ( 'Checkbox "%s" is not checked, but it should be.' , $ field ) ) ; }
Checks that specific checkbox is checked.

@param string             $field     field id|name|label|value
@param TraversableElement $container document to check against

@throws ExpectationException
Checks that specific checkbox is checked .