summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php
diff options
context:
space:
mode:
authorwei <>2006-09-01 01:07:51 +0000
committerwei <>2006-09-01 01:07:51 +0000
commit769856093ded9e4aae341a7d79b7f1441e7d5478 (patch)
treeba3e04abf5f73deed023bab7ec95b9b245dfcb22 /tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php
parent47a3cb88e7ed7f2a87bbf024dff3416fc6cd8002 (diff)
Add TActiveCustomValidator
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php b/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php
new file mode 100644
index 00000000..bf8d730b
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php
@@ -0,0 +1,11 @@
+<?php
+
+class CallbackCustomValidatorTest extends TPage
+{
+ function validate_text1($sender, $param)
+ {
+ $param->IsValid = $param->Value == 'Prado';
+ }
+}
+
+?> \ No newline at end of file