summaryrefslogtreecommitdiffstats
path: root/tests/mocks
AgeCommit message (Collapse)AuthorFilesLines
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.
2012-11-03Fix the bloody testsAndrey Andreev1-0/+2
2012-11-02Some micro-optimizationsAndrey Andreev1-5/+3
2012-10-24[ci skip] style and phpdoc-related changes (rel #1295)Andrey Andreev2-10/+10
2012-10-23Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into ↵dchill421-1/+2
load_config_units
2012-10-23Fix a mock db entryAndrey Andreev1-1/+1
2012-10-23Add a test for issue #273Andrey Andreev1-1/+2
2012-10-22Raised CI_Loader test coverage to 93%dchill425-18/+9
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-10-14Adapted DB for VFS changes and fixed Common case in Bootstrap.phpdchill423-3/+60
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-10-12Integrated vfsStream better and made paths constants VFS-baseddchill425-45/+233
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-10-10Merge branch 'develop' of github.com:/EllisLab/CodeIgniter into ↵dchill425-0/+53
load_config_units
2012-10-09Overloaded is_cli_request in Input mock for Session testdchill421-0/+10
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-09-03Added Calendar library unit testAlex Bilbie1-0/+25
2012-08-30Better way - autoloader uses first config pathdchill421-1/+0
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-08-30Finished the final tests (except do_upload)Alex Bilbie1-0/+0
2012-08-30Added lang mock and upload mockAlex Bilbie2-0/+18
2012-08-29Added autoloader unit test with minor supporting change in Loaderdchill421-0/+9
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-08-29Merge branch 'develop' of github.com:/EllisLab/CodeIgniter into ↵dchill422-5/+61
load_config_units