summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php28
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