summaryrefslogtreecommitdiff
path: root/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php')
-rw-r--r--tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php b/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php
new file mode 100644
index 00000000..3146cb06
--- /dev/null
+++ b/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php
@@ -0,0 +1,17 @@
+<?php
+require_once dirname(__FILE__).'/../../../phpunit2.php';
+
+Prado::using('System.Web.UI.WebControls.TRequiredFieldValidator');
+
+/**
+ * @package System.Web.UI.WebControls
+ */
+class TRequiredFieldValidatorTest extends PHPUnit2_Framework_TestCase {
+
+ public function testGetEmptyInitialValue() {
+ $validator = new TRequiredFieldValidator();
+ $this->assertEquals('', $validator->getInitialValue());
+ }
+}
+
+?> \ No newline at end of file