summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-03-12 13:35:13 +0100
committerAndrey Andreev <narf@devilix.net>2016-03-12 13:35:13 +0100
commit139bba1272f1406e8f60bba0e7b9c261715b406c (patch)
tree67eb11db285377d1d49eadb0891e429b56d6b5da /tests/codeigniter
parent8de036be27b55cc7587f0dfcb1c0fbcc88c5cf8f (diff)
parenta0556f128417467faaa7048bb1bf8da154e79582 (diff)
Merge branch '3.0-stable' into develop
Diffstat (limited to 'tests/codeigniter')
-rw-r--r--tests/codeigniter/libraries/Form_validation_test.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/codeigniter/libraries/Form_validation_test.php b/tests/codeigniter/libraries/Form_validation_test.php
index f455b9146..3537eb355 100644
--- a/tests/codeigniter/libraries/Form_validation_test.php
+++ b/tests/codeigniter/libraries/Form_validation_test.php
@@ -28,6 +28,16 @@ class Form_validation_test extends CI_TestCase {
$this->form_validation = new CI_Form_validation();
}
+ public function test_empty_array_input()
+ {
+ $this->assertFalse(
+ $this->run_rules(
+ array(array('field' => 'foo', 'label' => 'Foo Label', 'rules' => 'required')),
+ array('foo' => array())
+ )
+ );
+ }
+
public function test_rule_required()
{
$rules = array(array('field' => 'foo', 'label' => 'foo_label', 'rules' => 'required'));