diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php b/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php new file mode 100644 index 00000000..10c45aa3 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php @@ -0,0 +1,28 @@ +<?php
+
+class RadioButtonListTest extends TPage
+{
+ public function radChange($sender,$param){
+ $choice = 'Choice : ';
+ switch($this->rad_button_list->SelectedValue){
+ case 'yes':
+ $choice.='Yes :-)';
+ break;
+ case 'no':
+ $choice.='No :-(';
+ break;
+ case 'whynot':
+ $choice.='Why not ???';
+ break;
+ }
+ $this->label->Text = $choice;
+ }
+
+ public function action($sender,$param){
+ $this->label->Text = 'Action...';
+ }
+
+}
+
+
+?>
\ No newline at end of file |