summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/core
AgeCommit message (Collapse)AuthorFilesLines
2014-02-21Revert some changes ... our testing sucksAndrey Andreev1-27/+0
2014-02-21More CI_Lang testsAndrey Andreev1-4/+56
2014-02-20CI_Utf8-related changesAndrey Andreev2-2/+70
- Give priority to mb_convert_encoding() over iconv() in clean_string() (partially fixes #261) - Add more proper unit tests
2014-02-20Remove a few empty 'mock' classesAndrey Andreev1-1/+1
2014-02-19Add compatibility layer for array_column(), array_replace(), ↵Andrey Andreev1-0/+429
array_replace_recursive()
2014-02-18Don't load password hashing compat for HHVMAndrey Andreev1-0/+6
2014-02-18Add an ext/hash compatibility layer (just hash_pbkdf2(), for now)Andrey Andreev1-0/+51
2014-02-15Rename CI_Utf8::_is_ascii() to is_ascii() and make it publicAndrey Andreev1-2/+2
No reason for it to be protected.
2014-02-13Introducing compatibility layersAndrey Andreev2-0/+212
- Limited support for mbstring (mb_strlen(), mb_strpos(), mb_substr() only) via iconv. Falls back to regular strlen(), strpos(), substr() if iconv is not available. - Password hashing, dependant on CRYPT_BLOWFISH (2y version, available since PHP 5.3.7) availability.
2014-02-11Some other small writing consistency fixesdarwinel2-5/+5
As described in the Style guide. Found after some grep’ing.
2014-01-17Merge branch 'feature/uri_routing_overhaul' into 'develop'Andrey Andreev1-18/+10
2014-01-17Unit tests: Full code coverage of Benchmark classAndrey Andreev1-1/+25
2014-01-17Add CI_Model unit testAndrey Andreev1-0/+37
2014-01-16Add a unit test for CI_Utf8::_is_ascii()Andrey Andreev1-4/+9
2014-01-16Add some unit tests for CI_InputAndrey Andreev1-3/+44
2014-01-16URI Routing overhaulAndrey Andreev1-18/+10
- Allow multiple levels of controller directories (supersedes PRs #390, #2439) - Add support for per-directory 'defaul_controller' and '404_override' (resolves issue #2611; supersedes PR #939) - Fixed a bug where default_controller was called instead of triggering 404 if the current route is inside a directory - Removed a few calls from CI_Router to CI_URI that made a necessity for otherwise internal CI_URI methods to be public: - Removed CI_URI::_fetch_uri_string() and moved its logic into CI_URI::__construct() - Removed CI_URI::_remove_url_suffix, CI_URI::_explode_segments() and moved their logic into CI_URI::_set_uri_string() - Removed CI_URI::_reindex_segments() altogether ( doesn't need further manipulation, while is public anyway and can be properly (and more effectively) replaced on the spot)
2014-01-15CI_URI changes related to the 'permitted_uri_chars' settingAndrey Andreev1-9/+6
- Initialize and cache the value in the class constructor instead of searching for it every time - Removed the preg_quote() call from _filter_uri() to allow more fine-tuning from configuration - Renamed _filter_uri() to filter_uri() - it was public anyway and using it cannot break anything Related: issue #2799
2014-01-07Implement Loader method chainingAndrey Andreev1-28/+28
Requested in issue #2165 Supersedes PR #2319
2014-01-06Remove redudant Loader tests for library() & driver() with no parametersAndrey Andreev1-6/+0
2013-10-17Replace the last rand() with mt_rand()vlakoff1-1/+1
Better entropy, faster. Also fixed a few "it's" typos.
2013-08-19Lower precision for the CI_Benchmark::elapsed_time() test - there's no way ↵Andrey Andreev1-1/+1
to reliably test it
2013-08-11Input class: change behavior of get_post() method, add post_get() methodvlakoff1-1/+11
followup to PR #2522
2013-07-25Uniformize slash_item() with item()vlakoff1-1/+1
2013-07-25Adjustments to the previous commitvlakoff1-4/+4
2013-07-23Loader changes & optimizations related to issue #2551Andrey Andreev1-2/+2
2013-07-22Fix Loader_test::test_non_existent_model()Andrey Andreev1-1/+1
2013-07-22Fix CI_Loader::model() testsAndrey Andreev1-14/+12
2013-05-25Try a different method, the previous one wasn't working in Travisvlakoff1-1/+2
2013-05-25Fix tests executionvlakoff1-0/+2
See #2442
2013-03-31fix typo : StdClass should be stdClassAbdul Malik Ikhsan1-1/+1
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
2013-02-21CI_Output [set/append/get]_output() testsAndrey Andreev1-0/+35
2013-02-21Some miscellaneous testsAndrey Andreev1-1/+24
2013-02-21Add CI_Utf8::convert_to_utf8() testAndrey Andreev1-0/+20
2013-02-15Various cosmetic fixesvlakoff1-1/+1
2013-01-28Update unit tests with the ucfirst-library-filename requirementAndrey Andreev1-9/+9
2013-01-03Replaced array_push function reference with a faster ordinary element ↵and-ers1-1/+1
insertion method
2012-12-28Update CI_Output::get_header() testAndrey Andreev1-2/+2
2012-11-29Fix #2041Andrey Andreev1-1/+3
2012-11-29Added CI_Output::get_header()Andrey Andreev1-0/+35
(an improved version of PR #645) Also fixed get_content_type() to only return the MIME value and created Output library unit tests for both of these methods.
2012-11-20Update tests following 77bd21b15305412b63c8f448787d5b275efd07e2Andrey Andreev1-22/+2
2012-11-03Revert 679525d0237ac2e0a94d7b05377eb31eb3398f19Andrey Andreev1-1/+1
It appears to break get_instance()->*_package_path*() usage which is very common. Need to figure out how to resolve this.
2012-11-03Fix the bloody testsAndrey Andreev1-35/+37
2012-11-02An attempt to fix Loader testsAndrey Andreev1-38/+35
2012-10-27Fix Loader testsAndrey Andreev1-2/+2
2012-10-27Docblock improvements to the Config library and remove ↵Andrey Andreev1-23/+2
CI_Config::_assign_to_config() Existance of _assign_to_config() is pointless as this method consists just of a foreach calling CI_Config::set_item() and is only called by CodeIgniter.php - moved that foreach() in there instead.
2012-10-26Deprecated form helper function form_prep().Andrey Andreev1-5/+13
This function has been broken for YEARS and it's value-caching logic has only introduced various problems. We have html_escape() since CI 2.1.0 which is a perfect replacement, so it should be used instead. Fixes #228 & #1630
2012-10-23Replaced evals with getMock usage in Loader testsdchill421-16/+8
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-10-23Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into ↵dchill421-6/+6
load_config_units
2012-10-23Fix issue #779Andrey Andreev1-6/+6
2012-10-22Raised CI_Loader test coverage to 93%dchill421-117/+226
Signed-off-by: dchill42 <dchill42@gmail.com>