SimpleTest


SimpleTest\SimpleTextTag
tag.php at line 277

Class SimpleTextTag

SimpleTag
└─SimpleWidget
└─SimpleTextTag

public class SimpleTextTag
extends SimpleWidget

Text, password and hidden field.

Subpackage:
WebTester

Constructor Summary

SimpleTextTag(hash attributes)

Starts with a named tag with attributes only.

Method Summary
boolean

expectEndTag()

Tag contains no content.

boolean

setValue(string value)

Sets the current form element value.

Methods inherited from SimpleTest\SimpleWidget
getDefault, getName, getValue, resetValue, setValue
Methods inherited from SimpleTest\SimpleTag
addContent, addTag, expectEndTag, getAttribute, getChildElements, getContent, getTagName, getText, isId

Constructor Detail

tag.php at line 284

SimpleTextTag

public SimpleTextTag(hash attributes)

Starts with a named tag with attributes only.

Parameters:
attributes - Attribute names and string values.

Method Detail

tag.php at line 296

expectEndTag

public boolean expectEndTag()

Tag contains no content.

Returns:
False.

tag.php at line 307

setValue

public boolean setValue(string value)

Sets the current form element value. Cannot change the value of a hidden field.

Parameters:
value - New value.
Returns:
True if allowed.

SimpleTest