blob: 2a433af3d103bd13549f3f333d4bedf846c32575 [file] [log] [blame]
David Woodsf3ac71e2015-03-16 20:00:21 -07001<?php
2
3class Form_validation_test extends CI_TestCase {
4
5 public function set_up()
6 {
7 // Create a mock loader since load->helper() looks in the wrong directories for unit tests,
8 // We'll use CI_TestCase->helper() instead
9 $ldr = $this->getMock('CI_Loader', array('helper'));
10 // At current, CI_Form_Validation only calls load->helper("form")
11 // Assert this so that if that changes this fails fast
12 $ldr->expects($this->once())
13 ->method('helper')
14 ->with($this->equalTo('form'));
15
16 $this->ci_instance_var('load', $ldr);
17 $this->helper('form');
18
19 }
20
21 public function test___construct()
22 {
23 $this->form_validation = new CI_Form_validation();
24
25 $this->assertNotNull($this->form_validation);
26 }
27
28 public function test__construct_rules()
29 {
30
31 }
32
33 public function test_
34
35}