JHtmlSelectTest::testOptions
Test the options method.
Signature
public function testOptions(string
$expected,
[array
$arr = 'value',
[mixed
$optKey = 'value',
[string
$optText = 'text',
[mixed
$selected = null,
[boolean
$translate = false]]]]] )
Parameters
-
$expected
- Expected generated HTML <option> list.
-
$arr
- An array of objects, arrays, or values.
-
$optKey
- If a string, this is the name of the object variable for
-
$optText
- The name of the object variable for the option text.
-
$selected
- The key that is selected (accepts an array or a string)
-
$translate
- Translate the option values.
Returns
- void