summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/issues/protected/pages/Issue524.php
diff options
context:
space:
mode:
authorDavid <david0@github.com>2014-07-10 17:32:37 +0200
committerDavid <ottodavid@gmx.net>2014-08-22 12:41:56 +0200
commitd78e127d34b36ddd2b3465192218ef87f205828e (patch)
tree816d9bc2e85ddc4730ea23a58fc135ad9272cd4c /tests/FunctionalTests/issues/protected/pages/Issue524.php
parentbb486d4e6fc271107ee3d708269f01661ac4de0d (diff)
Testcase for Issue #524
(cherry picked from commit 37a1d886c6960080bbd03cad757c722b494a0220)
Diffstat (limited to 'tests/FunctionalTests/issues/protected/pages/Issue524.php')
-rwxr-xr-xtests/FunctionalTests/issues/protected/pages/Issue524.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/FunctionalTests/issues/protected/pages/Issue524.php b/tests/FunctionalTests/issues/protected/pages/Issue524.php
new file mode 100755
index 00000000..851ff45a
--- /dev/null
+++ b/tests/FunctionalTests/issues/protected/pages/Issue524.php
@@ -0,0 +1,20 @@
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Issue524 extends TPage
+{
+
+ public function __construct() {
+ Prado::getApplication()->getGlobalization()->setCharset('ISO-8859-1');
+ parent::__construct();
+ }
+
+ public function validateText($sender, $param)
+ {
+ $param->IsValid = false;
+ $iso8859text=iconv('utf-8', 'iso-8859-1', 'fünf');
+ $this->Validator->ErrorMessage = $iso8859text;
+ }
+
+}