EllisLab/CodeIgniter — pull request #1744 by dchill42 (2012-08-28 04:06:40+00:00)
Title: Loader and Config Unit Test Improvements

These changes employ vfsStream to test loading libraries, helpers, config files, etc. without relying on existing nor generated files. This approach divorces the Loader from the objects it loads, focusing the tests on the loading process and preventing false negatives due to broken modules. The same mechanism supports testing the config file loader in Config.

The other key change is making Loader independent of the actual Config module, instead simply testing the load->config() feature against a mockup. Now Config can test the inner workings of its own file loader in its own unit test.

Another addition is a driver() test for the Loader module. This new test is dependent on some code changes included in #353. Until that request is merged, Loader_test::test_driver will fail.

Signed-off-by: dchill42