summaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-05-09Suppress PHP 5.6 E_DEPRECATED warnings for mbstring.internal_encoding as wellAndrey Andreev1-1/+1
2014-05-09Fix PHP 5.6 charset-related warnings in testsAndrey Andreev1-2/+5
2014-05-09Add hash_equals() to ext/hash compat layerAndrey Andreev1-3/+29
Introduced in PHP 5.6 Beta 1 (unfortunately, still undocumented). RFC: https://wiki.php.net/rfc/timing_attack (Yes, I am aware that the RFC talks about hash_compare(), the function was later renamed in the implementation.)
2014-05-01PHPUnit, what's wrong with you?Andrey Andreev1-2/+0
2014-04-01Discard the unwanted changesvlakoff1-1/+7
2014-04-01Add test for "base_url" determination on server rootvlakoff1-2/+10
2014-03-31Remove test that has become unfitvlakoff1-7/+1
2014-03-18More xss_clean() improvementsAndrey Andreev1-1/+1
Issue described in https://github.com/EllisLab/CodeIgniter/issues/2667#issuecomment-37980030 + a false positive
2014-03-18xss_clean() improvementAndrey Andreev1-0/+6
Fixes this: https://github.com/EllisLab/CodeIgniter/issues/2667#issuecomment-37819186
2014-03-06[ci skip] Fix a test skip messageAndrey Andreev1-1/+1
2014-03-04CI_Encryption: Remove MCrypt 'work-arounds' for CAST-128 compatibilityAndrey Andreev1-12/+4
Turns out it's OpenSSL's fault for performing 16 rounds instead of 12 for key sizes of 5-11 bytes. Reference: http://tools.ietf.org/rfc/rfc2144.txt
2014-02-24Don't use globalsAndrey Andreev1-0/+2
- Use load_class() to get objects during bootstrap process. - Change load_class() to accept a class constructor parameter instead of previously unused class name prefix. - Change CI_Router::__construct() to accept as a parameter.
2014-02-21Revert some changes ... our testing sucksAndrey Andreev1-27/+0
2014-02-21More CI_Lang testsAndrey Andreev1-4/+56
2014-02-21Add test cases for CI_Upload::__construct(), CI_Upload::initialize()Andrey Andreev1-3/+44
2014-02-21CI_Upload changesAndrey Andreev1-6/+0
- Method chaining support. - A more abstract resetting of the default settings. - Added an option to initialize() to disable resetting to default settings. - Removed method mimes_types() and slightly optimized chunks of code where it was used. - Added the ability to pass allowed_types as an array.
2014-02-20CI_Utf8-related changesAndrey Andreev3-5/+76
- 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 Andreev12-24/+6
2014-02-20Fix CI_Calendar testsAndrey Andreev2-7/+27
2014-02-19Add compatibility layer for array_column(), array_replace(), ↵Andrey Andreev2-0/+430
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 Andreev2-0/+52
2014-02-17[ci skip] Minor tests adjustmentsAndrey Andreev5-33/+36
2014-02-17Enable write_file() testAndrey Andreev1-39/+35
2014-02-15Rename CI_Utf8::_is_ascii() to is_ascii() and make it publicAndrey Andreev2-7/+2
No reason for it to be protected.
2014-02-13Introducing compatibility layersAndrey Andreev3-0/+215
- 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-13[ci skip] Test fixesAndrey Andreev2-5/+10
2014-02-12Move mbstring/iconv configuration and MB_ENABLED, ICONV_ENABLED out of ↵Andrey Andreev2-23/+25
CI_Utf8::__construct() Also, use mb_substitute_character() instead of ini_set()
2014-02-12[ci skip] Indentation fixAndrey Andreev1-1/+1
2014-02-12Remove pointless mocks for remove_invisible_characters(), is_php(), ↵Andrey Andreev1-51/+0
is_really_writable()
2014-02-11Utf8/iconv/mbstring-related changesAndrey Andreev1-0/+11
2014-02-11Some other small writing consistency fixesdarwinel3-6/+6
As described in the Style guide. Found after some grep’ing.
2014-02-11A bug fix and optimizations in CI_TableAndrey Andreev1-20/+27
2014-02-10CI_Encryption: Rename 'base64' parameter to 'raw_data' and add docsAndrey Andreev1-4/+6
2014-02-09Merge branch 'develop' into 'feature/encryption'Andrey Andreev1-1/+1
2014-02-08Small Style fixdarwinel1-1/+1
General Style and Syntax
2014-02-07CI_Encryption: Optimizations and test casesAndrey Andreev2-66/+306
2014-02-06CI_Encryption: CAST-128/CAST5 and RC4/ARCFour compatibilityAndrey Andreev1-0/+23
2014-02-05CI_Encryption: HMAC to not be derived from the encryption keyAndrey Andreev1-4/+6
2014-02-05CI_Encryption: More MCrypt/OpenSSL compatibility and get rid of the ↵Andrey Andreev1-13/+46
MCRYPT_MODE_* constants
2014-02-05CI_Encryption: Add Blowfish to compatibility listAndrey Andreev1-5/+3
2014-02-04CI_Encryption: Fix more errors and add a 'portability' test caseAndrey Andreev1-1/+50
2014-02-04CI_Encryption: Fix some errors and add unit tests for hkdf()Andrey Andreev2-15/+119
2014-01-24Righting a wrong in the Session libraryAndrey Andreev1-10/+10
- Change userdata(), flashdata(), tempdata() to return all the respective data when no parameter is passed. - Revert the addition of all_flashdata(). - Deprecate all_userdata(). - Fix related changelog entries that were all inconsistent.
2014-01-17Merge branch 'feature/uri_routing_overhaul' into 'develop'Andrey Andreev1-18/+10
2014-01-17Minor changes related to CI_User_agentAndrey Andreev2-19/+52
Fixed a bug where both accept_charset() and accept_lang() improperly parsed headers if they contained spaces between data separators (which is valid). Also made is_referral() testable by replacing its static cache var with a class property and added some more unit tests for the library as a whole.
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 Andreev2-4/+14
2014-01-16Add some unit tests for CI_InputAndrey Andreev1-3/+44