bc... [cheat]
Home » Source Code » E - Voting System » Unit_test.php

Unit_test.php ( File view )

  • By okingers 2013-09-21
  • View(s):91
  • Download(s):5
  • Point(s): 2
			<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package		CodeIgniter
 * @author		ExpressionEngine Dev Team
 * @copyright	Copyright (c) 2008 - 2011, EllisLab, Inc.
 * @license		http://codeigniter.com/user_guide/license.html
 * @link		http://codeigniter.com
 * @since		Version 1.3.1
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * Unit Testing Class
 *
 * Simple testing class
 *
 * @package		CodeIgniter
 * @subpackage	Libraries
 * @category	UnitTesting
 * @author		ExpressionEngine Dev Team
 * @link		http://codeigniter.com/user_guide/libraries/uri.html
 */
class CI_Unit_test {


	var $active					= TRUE;
	var $results				= array();
	var $strict					= FALSE;
	var $_template				= NULL;
	var $_template_rows			= NULL;
	var $_test_items_visible	= array();

	public function __construct()
	{

		// These are the default items visible when a test is run.
		$this->_test_items_visible = array (
							'test_name',
							'test_datatype',
							'res_datatype',
							'result',
							'file',
							'line',
							'notes'
						);

		log_message('debug', "Unit Testing Class Initialized");
	
}

	// --------------------------------------------------------------------

	/**
	 * Run the tests
	 *
	 * Runs the supplied tests
	 *
	 * @access	public
	 * @param	array
	 * @return	void
	 */
	function set_test_items($items = array())
	{

		if ( ! empty($items) AND is_array($items))
		{

			$this->_test_items_visible = $items;
		
}
	
}

	// --------------------------------------------------------------------

	/**
	 * Run the tests
	 *
	 * Runs the supplied tests
	 *
	 * @access	public
	 * @param	mixed
	 * @param	mixed
	 * @param	string
	 * @return	string
	 */
	function run($test, $expected = TRUE, $test_name = 'undefined', $notes = '')
	{

		if ($this->active == FALSE)
		{

			return FALSE;
		
}

		if (in_array($expected, array('is_object', 'is_string', 'is_bool', 'is_true', 'is_false', 'is_int', 'is_numeric', 'is_float', 'is_double', 'is_array', 'is_null'), TRUE))
		{

			$expected = str_replace('is_float', 'is_double', $expected);
			$result = ($expected($test)) ? TRUE : FALSE;
			$extype = str_replace(array('true', 'false'), 'bool', str_replace('is_', '', $expected));
		
}
		else
		{

			if ($this->strict == TRUE)
				$result = ($test === $expected) ? TRUE : FALSE;
			else
				$result = ($test == $expected) ? TRUE : FALSE;

			$extype = gettype($expected);
		
}

		$back = $this->_backtrace();

		$report[] = array (
							'test_name'			=> $test_name,
							'test_datatype'		=> gettype($test),
							'res_datatype'		=> $extype,
							'result'			=> ($result === TRUE) ? 'passed' : 'failed',
							'file'				=> $back['file'],
							'line'				=> $back['line'],
							'notes'				=> $notes
						);

		$this->results[] = $report;

		return($this->report($this->result($report)));
	
}

	// --------------------------------------------------------------------

	/**
	 * Generate a report
	 *
	 * Displays a table with the test data
	 *
	 * @access	public
	 * @return	string
	 */
	function report($result = array())
	{

		if (count($result) == 0)
		{

			$result = $this->result();
		
}

		$CI =& get_instance();
		$CI->load->language('unit_test');

		$this->_parse_template();

		$r = '';
		foreach ($result as $res)
		{

			$table = '';

			foreach ($res as $key => $val)
			{

				if ($key == $CI->lang->line('ut_result'))
				{

					if ($val == $CI->lang->line('ut_passed'))
					{

						$val = '<span style="color: #0C0;">'.$val.'</span>';
					
}
					elseif ($val == $CI->lang->line('ut_failed'))
					{

						$val = '<span style="color: #C00;">'.$val.'</span>';
					
}
				
}

				$temp = $this->_template_rows;
				$temp = str_replace('{
item
}', $key, $temp);
				$temp = str_replace('{
result
}', $val, $temp);
				$table .= $temp;
			
}

			$r .= str_replace('{
rows
}', $table, $this->_template);
		
}

		return $r;
	
}

	// --------------------------------------------------------------------

	/**
	 * Use strict comparison
	 *
	 * Causes the evaluation to use === rather than ==
	 *
	 * @access	public
	 * @param	bool
	 * @return	null
	 */
	function use_strict($state = TRUE)
	{

		$this->strict = ($state == FALSE) ? FALSE : TRUE;
	
}

	// --------------------------------------------------------------------

	/**
	 * Make Unit testing active
	 *
	 * Enables/disables unit testing
	 *
	 * @access	public
	 * @param	bool
	 * @return	null
	 */
	function active($state = TRUE)
	{

		$this->active = ($state == FALSE) ? FALSE : TRUE;
	
}

	// --------------------------------------------------------------------

	/**
	 * Result Array
	 *
	 * Returns the raw result data
	 *
	 * @access	public
	 * @return	array
	 */
	function result($results = array())
	{

		$CI =& get_instance();
		$CI->load->language('unit_test');

		if (count($results) == 0)
		{

			$results = $this->results;
		
}

		$retval = array();
		foreach ($results as $result)
		{

			$temp = array();
			foreach ($result as $key => $val)
			{

				if ( ! in_array($key, $this->_test_items_visible))
				{

					continue;
				
}

				if (is_array($val))
				{

					foreach ($val as $k => $v)
					{

						if (FALSE !== ($line = $CI->lang->line(strtolower('ut_'.$v))))
						{

							$v = $line;
						
}
						$temp[$CI->lang->line('ut_'.$k)] = $v;
					
}
				
}
				else
				{

					if (FALSE !== ($line = $CI->lang->line(strtolo
...
...
(Please download the complete source code to view)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 2

Download
0 lines left, continue to read

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
01.96 kB
01.96 kB
admin_login.css717.00 B2008-10-28|10:23
admin_password.css615.00 B2011-08-27|16:28
admin_password.php23.30 kB2013-07-06|12:52
admin_password1.php23.34 kB2013-07-06|12:52
admin_users.php98.00 B2008-10-28|10:23
candidate.css784.00 B2011-01-24|18:05
candidate.php57.73 kB2013-07-06|12:53
candidate_add.css615.00 B2011-01-27|18:01
candidate_add.php47.89 kB2013-07-06|12:53
candidate_delete.css617.00 B2011-01-28|15:45
candidate_delete.php30.33 kB2013-07-06|12:53
candidate_edit.css617.00 B2011-01-28|16:01
candidate_edit.php54.72 kB2013-07-06|12:53
candidate_search.css617.00 B2011-01-28|16:33
candidate_search.php46.17 kB2013-07-06|12:54
clear.php341.00 B2010-07-01|08:31
form.html4.28 kB2011-08-27|16:42
home.php1.50 kB2013-07-06|12:55
01.96 kB
bbt_data.gif2.32 kB2008-05-09|18:18
bbt_data_over.gif980.00 B2008-05-09|18:18
bbt_navigator.gif2.39 kB2008-05-09|18:18
bbt_navigator_over.gif1.74 kB2008-05-09|18:18
bbt_search.gif2.31 kB2008-05-09|18:18
bbt_search_over.gif1.59 kB2008-05-09|18:18
bt_add.gif1.29 kB2008-05-09|18:18
bt_controlpanel.gif840.00 B2008-05-09|18:18
bt_controlpanelgroup.gif843.00 B2008-05-09|18:18
bt_copy.gif395.00 B2008-05-09|18:18
bt_data.gif835.00 B2008-05-09|18:18
bt_delete.gif196.00 B2008-05-09|18:18
bt_detail.gif637.00 B2008-05-09|18:18
bt_edit.gif262.00 B2008-05-09|18:18
bt_email.gif649.00 B2008-05-09|18:18
bt_list.gif835.00 B2008-05-09|18:18
bt_more.gif393.00 B2008-05-09|18:18
bt_panel.gif865.00 B2008-05-09|18:18
bt_qsadd_new.gif906.00 B2008-05-09|18:18
bt_qsback.gif1.36 kB2008-05-09|18:18
bt_qsback_inact.gif1.33 kB2008-05-09|18:18
bt_qsback_to_datapage.gif854.00 B2008-05-09|18:18
bt_qsback_to_shopping.gif853.00 B2008-05-09|18:18
bt_qsbetween.gif48.00 B2008-05-09|18:18
bt_qsbottom.gif1.31 kB2008-05-09|18:18
bt_qsbulk.gif1.29 kB2008-05-09|18:18
bt_qsclear_your_cart.gif869.00 B2008-05-09|18:18
bt_qsemailtofriend.gif1.33 kB2008-05-09|18:18
bt_qsexport_csv.gif826.00 B2008-05-09|18:18
bt_qsexport_excel.gif832.00 B2008-05-09|18:18
bt_qsexport_txt.gif825.00 B2008-05-09|18:18
bt_qsexport_word.gif833.00 B2008-05-09|18:18
bt_qsexport_xml.gif841.00 B2008-05-09|18:18
bt_qsfirst.gif1.38 kB2008-05-09|18:18
bt_qsgroup_back.gif1.36 kB2008-05-09|18:18
bt_qsgroup_next.gif1.35 kB2008-05-09|18:18
bt_qslast.gif1.38 kB2008-05-09|18:18
bt_qslogout.gif1.28 kB2008-05-09|18:18
bt_qsnext.gif1.35 kB2008-05-09|18:18
bt_qsnext_inact.gif1.33 kB2008-05-09|18:18
bt_qssearch.gif1.30 kB2008-05-09|18:18
bt_qsshowall.gif1.30 kB2008-05-09|18:18
bt_qstop.gif1.31 kB2008-05-09|18:18
bt_qsview_cart.gif1.35 kB2008-05-09|18:18
bt_search.gif1.30 kB2008-05-09|18:18
bt_shopping.gif399.00 B2008-05-09|18:18
Calendar.gif132.00 B2008-05-27|15:44
close.gif600.00 B2008-03-21|15:47
close2.gif600.00 B2008-03-21|15:47
drop1.gif180.00 B2008-03-21|15:47
drop2.gif172.00 B2008-03-21|15:47
index.html0.00 B2011-08-07|17:53
index_leftpane_bg.jpg20.48 kB2008-09-24|16:13
index_topbanner_bg.gif455.00 B2008-09-24|16:13
index_topbanner_left.gif5.66 kB2008-09-24|16:13
index_topbanner_right.gif618.00 B2008-09-24|16:13
left1.gif179.00 B2008-03-21|15:47
left2.gif173.00 B2008-03-21|15:47
left_right172.00 B2008-03-21|15:47
qs_nopicture.gif3.67 kB2008-03-21|15:47
right1.gif179.00 B2008-03-21|15:47
right2.gif172.00 B2008-03-21|15:47
sort_asc1.gif63.00 B2008-04-11|09:56
sort_asc2.gif54.00 B2008-05-09|18:18
sort_desc1.gif64.00 B2008-05-09|18:18
sort_desc2.gif54.00 B2008-05-09|18:18
Thumbs.db120.50 kB2011-08-27|15:20
index-1.php13.65 kB2013-07-06|12:55
index.php16.16 kB2011-08-27|18:05
01.97 kB
1.jpg288.24 kB2011-01-23|19:53
10.jpg105.71 kB2010-08-14|02:10
11.jpg121.54 kB2010-08-14|02:06
2.jpg32.06 kB2010-08-14|02:46
3.jpg24.72 kB2010-08-14|02:46
4.jpg39.58 kB2010-08-12|18:10
5.jpg51.14 kB2010-08-14|02:42
6.gif7.51 kB2010-08-14|02:58
7.jpg28.75 kB2010-08-14|02:12
8.jpg55.19 kB2010-08-14|02:13
9.jpg56.00 kB2010-08-14|02:12
Anil24.72 kB2011-02-12|08:11
Anil.jpg55.19 kB2011-02-05|14:21
Anuj.jpg28.75 kB2011-02-03|18:27
Ehla.gif7.51 kB2011-02-04|15:34
Ehla.jpg56.00 kB2011-02-04|08:34
Leo107.44 kB2013-07-06|13:14
Prem51.14 kB2011-08-27|16:18
prem.jpg720.72 kB2011-01-31|18:05
shyam.jpg32.06 kB2011-02-03|18:16
Thumbs.db140.50 kB2012-03-10|08:52
position.css615.00 B2011-01-26|21:24
position.php52.19 kB2013-07-06|12:55
position_add.css615.00 B2011-01-27|17:14
position_add.php32.47 kB2013-07-06|12:56
position_delete.css717.00 B2008-10-27|20:46
position_delete.php13.83 kB2013-07-06|12:56
position_edit.css617.00 B2011-01-27|17:37
position_edit.php37.02 kB2013-07-06|12:56
position_search.css617.00 B2011-01-27|17:43
position_search.php40.15 kB2013-07-06|12:56
qs_connection.php280.00 B2011-01-23|19:36
qs_functions.php25.14 kB2008-10-27|20:46
qwikcalendar.js25.73 kB2008-09-24|16:12
students.css615.00 B2011-01-27|17:57
students.php72.45 kB2013-07-06|12:57
students_add.css615.00 B2011-01-27|18:00
students_add.php60.50 kB2013-07-06|12:57
students_control_panel.php1.72 kB2011-01-27|17:58
students_delete.css617.00 B2011-01-27|18:00
students_delete.php28.15 kB2013-07-06|12:57
students_edit.css617.00 B2011-01-29|12:34
students_edit.php62.65 kB2013-07-06|12:57
students_search.php28.91 kB2013-07-06|12:57
tally.css717.00 B2008-10-28|10:36
tally.php61.41 kB2013-07-06|12:58
tally_rep.php43.65 kB2013-07-06|12:58
tally_search.css617.00 B2011-01-29|10:47
tally_search.php41.86 kB2013-07-06|12:58
user_includes.php208.00 B2008-09-29|14:13
validate.js4.60 kB2008-10-27|20:46
admin_login.css717.00 B2008-10-28|07:42
admin_password.php23.35 kB2013-07-06|12:49
admin_users.php98.00 B2008-10-28|07:42
category.php2.83 kB2013-07-06|12:50
01.96 kB
01.96 kB
.htaccess13.00 B2011-11-22|10:52
01.96 kB
.htaccess13.00 B2011-11-22|10:52
index.html114.00 B2011-11-22|10:52
01.96 kB
autoload.php3.02 kB2011-11-22|11:14
config.php12.52 kB2012-03-10|18:58
constants.php1.52 kB2011-11-22|11:14
database.php3.14 kB2011-11-22|11:14
doctypes.php1.11 kB2011-11-22|11:14
foreign_chars.php1.74 kB2011-11-22|11:14
hooks.php498.00 B2011-11-22|11:14
index.html114.00 B2011-11-22|10:52
migration.php1.29 kB2011-11-22|11:14
mimes.php4.30 kB2011-11-22|11:14
profiler.php564.00 B2011-11-22|11:14
routes.php1.51 kB2011-11-22|11:14
smileys.php3.22 kB2011-11-22|11:14
user_agents.php5.46 kB2011-11-22|11:14
01.96 kB
index.html114.00 B2011-11-22|10:52
welcome.php770.00 B2011-11-22|11:14
01.96 kB
index.html114.00 B2011-11-22|10:52
01.96 kB
error_404.php1.13 kB2011-11-22|11:14
error_db.php1.13 kB2011-11-22|11:14
error_general.php1.12 kB2011-11-22|11:14
error_php.php288.00 B2011-11-22|11:14
index.html114.00 B2011-11-22|10:52
01.96 kB
index.html114.00 B2011-11-22|10:52
01.96 kB
index.html114.00 B2011-11-22|10:52
index.html114.00 B2011-11-22|10:52
01.96 kB
01.96 kB
index.html114.00 B2011-11-22|10:52
01.96 kB
index.html114.00 B2011-11-22|10:52
01.96 kB
index.html114.00 B2011-11-22|10:52
01.96 kB
index.html114.00 B2011-11-22|10:52
01.96 kB
index.html114.00 B2011-11-22|10:52
01.96 kB
bg2.png2.09 kB2012-02-06|01:28
index.html114.00 B2011-11-22|10:52
welcome_message.php2.00 kB2012-03-10|18:57
01.96 kB
gsng.jpg308.39 kB2012-03-02|01:28
index.php6.21 kB2011-11-22|11:14
license.txt2.44 kB2011-11-22|11:14
style.css40.00 B2012-03-10|18:57
01.96 kB
.htaccess13.00 B2011-11-22|10:52
01.96 kB
Benchmark.php2.88 kB2011-11-22|11:14
CodeIgniter.php11.13 kB2011-11-22|11:14
Common.php13.10 kB2011-11-22|11:14
Config.php7.97 kB2011-11-22|11:14
Controller.php1.53 kB2011-11-22|11:14
Exceptions.php4.58 kB2011-11-22|11:14
Hooks.php4.59 kB2011-11-22|11:14
index.html114.00 B2011-11-22|10:52
Input.php15.82 kB2011-11-22|11:14
Lang.php3.55 kB2011-11-22|11:14
Loader.php29.86 kB2011-11-22|11:14
Model.php1.16 kB2011-11-22|11:14
Output.php12.63 kB2011-11-22|11:14
Router.php12.10 kB2011-11-22|11:14
Security.php21.52 kB2011-11-22|11:14
URI.php14.10 kB2011-11-22|11:14
Utf8.php3.50 kB2011-11-22|11:14
01.96 kB
DB.php4.09 kB2011-11-22|11:14
DB_active_rec.php41.87 kB2011-11-22|11:14
DB_cache.php4.28 kB2011-11-22|11:14
DB_driver.php31.52 kB2011-11-22|11:14
DB_forge.php7.27 kB2011-11-22|11:14
DB_result.php8.81 kB2011-11-22|11:14
DB_utility.php9.58 kB2011-11-22|11:14
01.96 kB
01.96 kB
cubrid_driver.php17.47 kB2011-11-22|11:14
cubrid_forge.php6.89 kB2011-11-22|11:14
cubrid_result.php4.40 kB2011-11-22|11:14
cubrid_utility.php2.80 kB2011-11-22|11:14
index.html114.00 B2011-11-22|10:52
index.html114.00 B2011-11-22|10:52
01.96 kB
index.html114.00 B2011-11-22|10:52
mssql_driver.php14.49 kB2011-11-22|11:14
mssql_forge.php5.66 kB2011-11-22|11:14
mssql_result.php3.29 kB2011-11-22|11:14
mssql_utility.php1.93 kB2011-11-22|11:14
01.96 kB
index.html114.00 B2011-11-22|10:52
mysql_driver.php16.96 kB2011-11-22|11:14
mysql_forge.php6.29 kB2011-11-22|11:14
mysql_result.php3.54 kB2011-11-22|11:14
mysql_utility.php4.50 kB2011-11-22|11:14
01.96 kB
index.html114.00 B2011-11-22|10:52
mysqli_driver.php17.00 kB2011-11-22|11:14
mysqli_forge.php5.96 kB2011-11-22|11:14
mysqli_result.php3.56 kB2011-11-22|11:14
mysqli_utility.php1.94 kB2011-11-22|11:14
01.96 kB
index.html114.00 B2011-11-22|10:52
oci8_driver.php18.11 kB2011-11-22|11:14
oci8_forge.php5.48 kB2011-11-22|11:14
oci8_result.php4.39 kB2011-11-22|11:14
oci8_utility.php1.88 kB2011-11-22|11:14
01.96 kB
index.html114.00 B2011-11-22|10:52
odbc_driver.php13.57 kB2011-11-22|11:14
odbc_forge.php5.97 kB2011-11-22|11:14
odbc_result.php4.49 kB2011-11-22|11:14
odbc_utility.php2.21 kB2011-11-22|11:14
01.96 kB
index.html114.00 B2011-11-22|10:52
pdo_driver.php17.00 kB2011-11-22|11:14
pdo_forge.php5.95 kB2011-11-22|11:14
pdo_result.php3.17 kB2011-11-22|11:14
pdo_utility.php2.18 kB2011-11-22|11:14
01.96 kB
index.html114.00 B2011-11-22|10:52
postgre_driver.php15.15 kB2011-11-22|11:14
postgre_forge.php7.18 kB2011-11-22|11:14
postgre_result.php3.36 kB2011-11-22|11:14
postgre_utility.php1.81 kB2011-11-22|11:14
01.96 kB
index.html114.00 B2011-11-22|10:52
sqlite_driver.php13.73 kB2011-11-22|11:14
sqlite_forge.php6.16 kB2011-11-22|11:14
sqlite_result.php3.47 kB2011-11-22|11:14
sqlite_utility.php2.10 kB2011-11-22|11:14
01.96 kB
index.html114.00 B2011-11-22|10:52
sqlsrv_driver.php13.23 kB2011-11-22|11:14
sqlsrv_forge.php5.66 kB2011-11-22|11:14
sqlsrv_result.php3.34 kB2011-11-22|11:14
sqlsrv_utility.php1.93 kB2011-11-22|11:14
index.html114.00 B2011-11-22|10:52
01.96 kB
index.html114.00 B2011-11-22|10:52
texb.ttf140.46 kB2011-11-22|10:52
01.96 kB
array_helper.php2.45 kB2011-11-22|11:14
captcha_helper.php6.02 kB2011-11-22|11:14
cookie_helper.php2.53 kB2011-11-22|11:14
date_helper.php12.67 kB2011-11-22|11:14
directory_helper.php2.01 kB2011-11-22|11:14
download_helper.php2.68 kB2011-11-22|11:14
email_helper.php1.45 kB2011-11-22|11:14
file_helper.php11.12 kB2011-11-22|11:14
form_helper.php21.26 kB2011-11-22|11:14
html_helper.php8.59 kB2011-11-22|11:14
index.html114.00 B2011-11-22|10:52
inflector_helper.php5.24 kB2011-11-22|11:14
language_helper.php1.38 kB2011-11-22|11:14
number_helper.php1.82 kB2011-11-22|11:14
path_helper.php1.74 kB2011-11-22|11:14
security_helper.php2.61 kB2011-11-22|11:14
smiley_helper.php6.31 kB2011-11-22|11:14
string_helper.php6.28 kB2011-11-22|11:14
text_helper.php12.83 kB2011-11-22|11:14
typography_helper.php2.19 kB2011-11-22|11:14
url_helper.php12.14 kB2011-11-22|11:14
xml_helper.php1.75 kB2011-11-22|11:14
index.html114.00 B2011-11-22|10:52
01.96 kB
01.96 kB
calendar_lang.php1.40 kB2011-11-22|11:14
date_lang.php3.10 kB2011-11-22|11:14
db_lang.php2.22 kB2011-11-22|11:14
email_lang.php1.67 kB2011-11-22|11:14
form_validation_lang.php1.78 kB2011-11-22|11:14
ftp_lang.php1.25 kB2011-11-22|11:14
imglib_lang.php1.96 kB2011-11-22|11:14
index.html114.00 B2011-11-22|10:52
migration_lang.php713.00 B2011-11-22|11:14
number_lang.php249.00 B2011-11-22|11:14
profiler_lang.php1.09 kB2011-11-22|11:14
unit_test_lang.php808.00 B2011-11-22|11:14
upload_lang.php1.58 kB2011-11-22|11:14
index.html114.00 B2011-11-22|10:52
01.96 kB
01.96 kB
Cache.php4.57 kB2011-11-22|11:14
01.96 kB
Cache_apc.php3.23 kB2011-11-22|11:14
Cache_dummy.php2.59 kB2011-11-22|11:14
Cache_file.php4.05 kB2011-11-22|11:14
Cache_memcached.php4.91 kB2011-11-22|11:14
Calendar.php12.37 kB2011-11-22|11:14
Cart.php14.72 kB2011-11-22|11:14
Driver.php5.29 kB2011-11-22|11:14
Email.php46.84 kB2011-11-22|11:14
Encrypt.php11.25 kB2011-11-22|11:14
Form_validation.php28.81 kB2011-11-22|11:14
Ftp.php12.28 kB2011-11-22|11:14
Image_lib.php36.40 kB2011-11-22|11:14
index.html114.00 B2011-11-22|10:52
Javascript.php19.65 kB2011-11-22|11:14
01.96 kB
Jquery.php23.63 kB2011-11-22|11:14
Log.php2.63 kB2011-11-22|11:14
Migration.php8.03 kB2011-11-22|11:14
Pagination.php8.84 kB2011-11-22|11:14
Parser.php4.32 kB2011-11-22|11:14
Profiler.php18.83 kB2011-11-22|11:14
Session.php18.77 kB2011-11-22|11:14
Sha1.php4.88 kB2011-11-22|11:14
Table.php11.10 kB2011-11-22|11:14
Trackback.php11.71 kB2011-11-22|11:14
Typography.php12.42 kB2011-11-22|11:14
Unit_test.php8.01 kB2011-11-22|11:14
Upload.php25.02 kB2011-11-22|11:14
User_agent.php10.26 kB2011-11-22|11:14
Xmlrpc.php32.78 kB2011-11-22|11:14
Xmlrpcs.php15.19 kB2011-11-22|11:14
Zip.php9.93 kB2011-11-22|11:14
01.96 kB
changelog.html109.75 kB2011-11-22|11:14
01.96 kB
active_record.html31.90 kB2011-11-22|11:14
caching.html9.42 kB2011-11-22|11:14
call_function.html4.46 kB2011-11-22|11:14
configuration.html9.16 kB2011-11-22|11:14
connecting.html7.57 kB2011-11-22|11:14
examples.html7.30 kB2011-11-22|11:14
fields.html5.25 kB2011-11-22|11:14
forge.html17.79 kB2011-11-22|11:14
helpers.html5.85 kB2011-11-22|11:14
index.html4.08 kB2011-11-22|11:14
queries.html7.05 kB2011-11-22|11:14
results.html8.73 kB2011-11-22|11:14
table_data.html3.77 kB2011-11-22|11:14
transactions.html7.73 kB2011-11-22|11:14
utilities.html13.49 kB2011-11-22|11:14
01.96 kB
index.html3.50 kB2011-11-22|11:14
template.html3.65 kB2011-11-22|11:14
01.96 kB
alternative_php.html5.67 kB2011-11-22|11:14
ancillary_classes.html4.68 kB2011-11-22|11:14
autoloader.html4.00 kB2011-11-22|11:14
caching.html5.26 kB2011-11-22|11:14
cli.html5.59 kB2011-11-22|11:14
common_functions.html5.49 kB2011-11-22|11:14
controllers.html14.86 kB2011-11-22|11:14
core_classes.html6.94 kB2011-11-22|11:14
creating_drivers.html3.58 kB2011-11-22|11:14
creating_libraries.html10.96 kB2011-11-22|11:14
credits.html3.70 kB2011-11-22|11:14
drivers.html4.54 kB2011-11-22|11:14
environments.html4.82 kB2011-11-22|11:14
errors.html6.28 kB2011-11-22|11:14
helpers.html8.75 kB2011-11-22|11:14
hooks.html11.41 kB2011-11-22|11:14
libraries.html4.03 kB2011-11-22|11:14
managing_apps.html5.57 kB2011-11-22|11:14
models.html10.42 kB2011-11-22|11:14
profiling.html7.03 kB2011-11-22|11:14
quick_reference.html2.99 kB2011-11-22|11:14
requirements.html3.14 kB2011-11-22|11:14
reserved_names.html4.46 kB2011-11-22|11:14
routing.html7.54 kB2011-11-22|11:14
security.html6.00 kB2011-11-22|11:14
styleguide.html24.87 kB2011-11-22|11:14
urls.html6.25 kB2011-11-22|11:14
views.html9.84 kB2011-11-22|11:14
01.96 kB
array_helper.html6.50 kB2011-11-22|11:14
captcha_helper.html7.89 kB2011-11-22|11:14
cookie_helper.html4.22 kB2011-11-22|11:14
date_helper.html14.89 kB2011-11-22|11:14
directory_helper.html6.05 kB2011-11-22|11:14
download_helper.html3.93 kB2011-11-22|11:14
email_helper.html4.11 kB2011-11-22|11:14
file_helper.html7.81 kB2011-11-22|11:14
form_helper.html20.75 kB2011-11-22|11:14
html_helper.html24.25 kB2011-11-22|11:14
inflector_helper.html4.41 kB2011-11-22|11:14
language_helper.html3.75 kB2011-11-22|11:14
number_helper.html4.05 kB2011-11-22|11:14
path_helper.html3.94 kB2011-11-22|11:14
security_helper.html4.47 kB2011-11-22|11:14
smiley_helper.html7.81 kB2011-11-22|11:14
string_helper.html7.46 kB2011-11-22|11:14
text_helper.html7.84 kB2011-11-22|11:14
typography_helper.html4.10 kB2011-11-22|11:14
url_helper.html12.27 kB2011-11-22|11:14
xml_helper.html3.54 kB2011-11-22|11:14
01.96 kB
appflowchart.gif12.07 kB2011-11-22|11:14
arrow.gif123.00 B2011-11-22|11:14
ci_logo.jpg5.47 kB2011-11-22|11:14
ci_logo_flame.jpg8.39 kB2011-11-22|11:14
ci_quick_ref.png92.26 kB2011-11-22|11:14
codeigniter_1.7.1_helper_reference.pdf487.40 kB2011-11-22|11:14
codeigniter_1.7.1_helper_reference.png65.81 kB2011-11-22|11:14
codeigniter_1.7.1_library_reference.pdf651.29 kB2011-11-22|11:14
codeigniter_1.7.1_library_reference.png109.13 kB2011-11-22|11:14
file.gif370.00 B2011-11-22|11:14
folder.gif570.00 B2011-11-22|11:14
nav_bg_darker.jpg445.00 B2011-11-22|11:14
nav_separator_darker.jpg304.00 B2011-11-22|11:14
nav_toggle_darker.jpg1.87 kB2011-11-22|11:14
reactor-bullet.png781.00 B2011-11-22|11:14
smile.gif1.13 kB2011-11-22|11:14
transparent.gif43.00 B2011-11-22|11:14
index.html3.96 kB2011-11-22|11:14
01.96 kB
downloads.html6.11 kB2011-11-22|11:14
index.html5.12 kB2011-11-22|11:14
troubleshooting.html3.73 kB2011-11-22|11:14
upgrade_120.html3.47 kB2011-11-22|11:14
upgrade_130.html6.35 kB2011-11-22|11:14
upgrade_131.html3.82 kB2011-11-22|11:14
upgrade_132.html3.76 kB2011-11-22|11:14
upgrade_133.html4.41 kB2011-11-22|11:14
upgrade_140.html5.14 kB2011-11-22|11:14
upgrade_141.html5.17 kB2011-11-22|11:14
upgrade_150.html6.19 kB2011-11-22|11:14
upgrade_152.html4.37 kB2011-11-22|11:14
upgrade_153.html3.80 kB2011-11-22|11:14
upgrade_154.html4.50 kB2011-11-22|11:14
upgrade_160.html5.01 kB2011-11-22|11:14
upgrade_161.html3.74 kB2011-11-22|11:14
upgrade_162.html4.17 kB2011-11-22|11:14
upgrade_163.html3.74 kB2011-11-22|11:14
upgrade_170.html4.95 kB2011-11-22|11:14
upgrade_171.html3.76 kB2011-11-22|11:14
upgrade_172.html4.34 kB2011-11-22|11:14
upgrade_200.html6.25 kB2011-11-22|11:14
upgrade_201.html4.46 kB2011-11-22|11:14
upgrade_202.html4.13 kB2011-11-22|11:14
upgrade_203.html5.00 kB2011-11-22|11:14
upgrade_210.html3.72 kB2011-11-22|11:14
upgrade_b11.html5.29 kB2011-11-22|11:14
upgrading.html4.82 kB2011-11-22|11:14
01.96 kB
benchmark.html7.58 kB2011-11-22|11:14
caching.html8.13 kB2011-11-22|11:14
calendar.html12.66 kB2011-11-22|11:14
cart.html17.42 kB2011-11-22|11:14
config.html9.79 kB2011-11-22|11:14
email.html13.13 kB2011-11-22|11:14
encryption.html10.20 kB2011-11-22|11:14
file_uploading.html15.62 kB2011-11-22|11:14
form_validation.html63.59 kB2011-11-22|11:14
ftp.html10.61 kB2011-11-22|11:14
image_lib.html24.54 kB2011-11-22|11:14
input.html11.69 kB2011-11-22|11:14
javascript.html13.11 kB2011-11-22|11:14
language.html6.40 kB2011-11-22|11:14
loader.html13.67 kB2011-11-22|11:14
migration.html6.38 kB2011-11-22|11:14
output.html7.83 kB2011-11-22|11:14
pagination.html9.93 kB2011-11-22|11:14
parser.html10.28 kB2011-11-22|11:14
security.html6.11 kB2011-11-22|11:14
sessions.html16.39 kB2011-11-22|11:14
table.html14.00 kB2011-11-22|11:14
trackback.html11.83 kB2011-11-22|11:14
typography.html6.67 kB2011-11-22|11:14
unit_testing.html8.09 kB2011-11-22|11:14
uri.html8.80 kB2011-11-22|11:14
user_agent.html8.35 kB2011-11-22|11:14
xmlrpc.html26.55 kB2011-11-22|11:14
zip.html9.77 kB2011-11-22|11:14
license.html5.54 kB2011-11-22|11:14
01.96 kB
hacks.txt233.00 B2011-11-22|11:14
moo.fx.js1.95 kB2011-11-22|11:14
nav.js8.59 kB2011-11-22|11:14
prototype.lite.js2.77 kB2011-11-22|11:14
user_guide_menu.js99.00 B2011-11-22|11:14
01.96 kB
appflow.html3.94 kB2011-11-22|11:14
at_a_glance.html7.06 kB2011-11-22|11:14
cheatsheets.html3.49 kB2011-11-22|11:14
features.html4.65 kB2011-11-22|11:14
getting_started.html3.88 kB2011-11-22|11:14
goals.html4.55 kB2011-11-22|11:14
index.html3.23 kB2011-11-22|11:14
mvc.html4.38 kB2011-11-22|11:14
toc.html9.59 kB2011-11-22|11:14
01.96 kB
conclusion.html4.14 kB2011-11-22|11:14
create_news_items.html8.48 kB2011-11-22|11:14
hard_coded_pages.html8.63 kB2011-11-22|11:14
index.html4.61 kB2011-11-22|11:14
news_section.html9.88 kB2011-11-22|11:14
static_pages.html9.58 kB2011-11-22|11:14
userguide.css6.44 kB2011-11-22|11:14
connect.php270.00 B2011-06-21|08:55
contact.php1.20 kB2013-07-06|13:02
default.css2.96 kB2011-08-27|18:17
fresult.php7.56 kB2013-07-06|12:50
functions.php23.87 kB2011-01-25|16:09
01.96 kB
header1.jpg204.42 kB2011-08-25|08:21
img01.gif224.00 B2011-01-17|16:59
img02.gif252.00 B2006-06-10|22:36
index.html0.00 B2011-08-07|17:53
spacer.gif43.00 B2006-06-10|17:55
Thumbs.db19.00 kB2011-08-27|16:15
index.php1.40 kB2013-07-06|13:11
qs_connection.php276.00 B2011-08-27|15:19
qs_functions.php25.14 kB2008-10-28|07:41
qwikcalendar.js25.73 kB2008-09-24|16:12
result.php13.51 kB2013-07-06|12:51
user_includes.php208.00 B2008-09-29|14:13
user_login.php10.01 kB2013-07-06|13:22
validate.js4.60 kB2008-10-28|07:41
votepage.php6.07 kB2013-07-06|12:51
voting.sql3.51 kB2011-02-12|08:16
...

Unit_test.php (4.89 MB)

Need 2 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D