summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/controls
diff options
context:
space:
mode:
authorwei <>2006-04-28 01:22:42 +0000
committerwei <>2006-04-28 01:22:42 +0000
commiteb2a6e9431445b3cb24be4b75f02f07aef70aebc (patch)
treed634891aa58ed491398d8eef5d80fc7f467f1070 /tests/FunctionalTests/features/protected/controls
parent639a6b1c052f8b3ef1d1063843cae1c88ef4f346 (diff)
New abstract TCompositeControl + FT tests
Diffstat (limited to 'tests/FunctionalTests/features/protected/controls')
-rw-r--r--tests/FunctionalTests/features/protected/controls/LabeledTextBox.tpl2
-rw-r--r--tests/FunctionalTests/features/protected/controls/LabeledTextbox.php19
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/FunctionalTests/features/protected/controls/LabeledTextBox.tpl b/tests/FunctionalTests/features/protected/controls/LabeledTextBox.tpl
new file mode 100644
index 00000000..276d03b2
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/controls/LabeledTextBox.tpl
@@ -0,0 +1,2 @@
+<com:TLabel ID="label" ForControl="textbox" Text="label:" />
+<com:TTextBox ID="textbox" /> \ No newline at end of file
diff --git a/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php b/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
new file mode 100644
index 00000000..33396734
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
@@ -0,0 +1,19 @@
+<?php
+/*
+ * Created on 28/04/2006
+ */
+
+class LabeledTextBox extends TCompositeControl
+{
+ public function getTextBox()
+ {
+ return $this->textbox;
+ }
+
+ public function getLabel()
+ {
+ return $this->label;
+ }
+}
+
+?>