summaryrefslogtreecommitdiffstats
path: root/tests/mocks
AgeCommit message (Collapse)AuthorFilesLines
2017-03-24Merge branch '3.1-stable' into developAndrey Andreev1-4/+4
Conflicts resolved: system/core/CodeIgniter.php system/core/Common.php system/core/Input.php system/helpers/cookie_helper.php tests/codeigniter/helpers/html_helper_test.php user_guide_src/source/changelog.rst user_guide_src/source/conf.py user_guide_src/source/installation/downloads.rst user_guide_src/source/installation/upgrading.rst user_guide_src/source/libraries/input.rst
2017-03-06Fix #5044; add unit tests for img() HTML helperAndrey Andreev1-4/+4
2016-12-14Move csrf_verify() call out of CI_InputAndrey Andreev1-30/+0
2016-12-14Isolate CI_Security instantiation from CI_Input; improve testsAndrey Andreev3-26/+5
2016-12-14Finally drop CI_Input::_sanitize_globals()Andrey Andreev1-18/+1
Close #4101
2016-12-12Remove previously deprecated Cart LibraryAndrey Andreev1-1/+0
2016-12-08Merge pull request #4932 from rhynodesigns/patch-1Andrey Andreev1-2/+2
[ci skip] Fix a comment typo in unit tests
2016-12-08Spelling: convinient -> convenientRyan McAllen1-2/+2
2016-05-20Merge pull request #4638 from kasimtan/phpdoc_fixesAndrey Andreev5-5/+0
[ci skip] Fixed PHPDoc parameter name and type discrepancies
2016-05-19Fixed PHPDoc parameter name and type discrepanciesKasim Tan5-5/+0
2015-08-03[ci skip] Normalize tabs/spacesAndrey Andreev1-1/+1
Partial changes from PR #4016
2015-02-27Make CI_Input:: read-only as wellAndrey Andreev1-0/+8
2015-02-19test_db_failover is failing after 'autoinit' removal ...Andrey Andreev1-1/+1
2015-02-19Remove 'autoinit' DB settingAndrey Andreev1-2/+1
It doesn't make sense to do a load->database() call but not connect to the database. IIRC there was more stuff in CI_DB_driver::initialize() at some point, so that was probably the reason why the setting existed in the first place. However, now it only results in users making invalid bug reports because they don't understand the feature ... Examples during just the past 2 weeks: #3571 #3601 #3607
2015-02-17Fix #3572: CI_Security::_remove_evil_attributes()Andrey Andreev1-0/+5
2015-01-29fix typo in commentsClaudio Galdiolo1-2/+2
2015-01-29fix typo in commentsClaudio Galdiolo1-2/+2
2015-01-29fix typo in commentsClaudio Galdiolo1-3/+3
2015-01-20Ignore mysql_*connect() E_DEPRECATED errors in testsAndrey Andreev1-0/+7
2015-01-12Added support for running unit tests on PHP 5.2Dan Bernardic1-17/+17
Signed-off-by: Dan Bernardic <dan.bernardic@gmail.com>
2015-01-11Added a unit test for #3464Dan Bernardic1-4/+9
Signed-off-by: Dan Bernardic <dan.bernardic@gmail.com>
2014-10-05config_item() to return NULL instead of FALSE for non-existing itemsAndrey Andreev1-1/+1
Close #3001 Close #3232 Related: #3244
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-20CI_Utf8-related changesAndrey Andreev1-3/+6
- 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 Andreev7-19/+1
2014-02-15Rename CI_Utf8::_is_ascii() to is_ascii() and make it publicAndrey Andreev1-5/+0
No reason for it to be protected.
2014-02-12Move mbstring/iconv configuration and MB_ENABLED, ICONV_ENABLED out of ↵Andrey Andreev1-23/+2
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-07CI_Encryption: Optimizations and test casesAndrey Andreev1-0/+39
2014-02-04CI_Encryption: Fix some errors and add unit tests for hkdf()Andrey Andreev1-15/+38
2014-01-16Add a unit test for CI_Utf8::_is_ascii()Andrey Andreev1-0/+5
2014-01-15CI_URI changes related to the 'permitted_uri_chars' settingAndrey Andreev1-2/+13
- 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-13Don't throw in mock autoloaderFred Emmott1-15/+1
This behavior doesn't appear to be used at all. This fixes HHVM compatibility: HHVM optimizes class_exists() to a dedicated bytecode - as it's not a function call, it doesn't show up in the backtrace. 100% of the tests pass with this change.
2013-11-12Deprecate CI_Input::is_cli_request() and add common function is_cli() to ↵Andrey Andreev2-5/+9
replace it Calls to this function are often needed before the Input library is available
2013-09-13Drop the unused parameter from log_message() / CI_Log::write_log()Andrey Andreev1-1/+1
2013-07-15Fix Travis testsAndrey Andreev1-0/+2
2013-05-07Logging functions: level parameter is not optionalvlakoff1-1/+1
This parameter cannot be optional, as the following parameter is mandatory. Also completed the corresponding documentation.
2013-03-31fix typo : StdClass should be stdClassAbdul Malik Ikhsan1-1/+1
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
2013-02-21DB_result tests seem to also depend on autoloading via the class_exists() ↵Andrey Andreev1-0/+0
checks ...
2013-02-21Fix Session testsAndrey Andreev1-1/+3
2012-12-03[ci skip] Cleaned some spacesAndrey Andreev4-4/+3
2012-11-25MySQLi testsAndrey Andreev2-0/+51
2012-11-25Merge pull request #2029 from dchill42/driver_extAndrey Andreev2-7/+27
Added driver extension support
2012-11-25Replaced Mock_Core_Lang with PHPUnit mockupsdchill422-40/+0
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-11-25Added support for extending individual driver classes and driver unit testsdchill422-7/+27
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-11-09Move Log class to core in tests as wellAndrey Andreev1-6/+5
2012-11-05Refactored DB ForgeAndrey Andreev2-3/+4
- PDO subdrivers are isolated from each other now. - Added compatibility for pretty much all of the features, for every DB platform. - Unified the way that stuff works in general. - Fixes issue #1005.
2012-11-03Revert 679525d0237ac2e0a94d7b05377eb31eb3398f19Andrey Andreev1-2/+0
It appears to break get_instance()->*_package_path*() usage which is very common. Need to figure out how to resolve this.