Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Unit test bugfix to allow setting columns for report method. #1848

merged 3 commits into from

2 participants


Fixes Issue #395


Can you add a changelog entry describing the fix?


Sure thing! Ooopsies.

@CodingWithKyle CodingWithKyle Updated changelog with bugfix (#395)
Signed-off-by: Kyle Johnson <>

... and unfortunately due to other stuff being merged. Yours now is in a conflict (the changelog exactly). Can you pull in latest changes and poke me when ready so I can merge it?


@narfbg It's ready when you have the chance (This source-control stuff is new to me, so you're forcing me to learn!!!)

@narfbg narfbg merged commit 6dba0cd into bcit-ci:develop

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 3, 2012
Commits on Oct 4, 2012
  1. @CodingWithKyle

    Updated changelog with bugfix (#395)

    CodingWithKyle authored
    Signed-off-by: Kyle Johnson <>
Commits on Oct 5, 2012
  1. @CodingWithKyle

    Fixed conflicts in changelog to reflect all changes.

    CodingWithKyle authored
This page is out of date. Refresh to see the latest.
5 system/libraries/Unit_test.php
@@ -240,6 +240,11 @@ public function result($results = array())
foreach ($val as $k => $v)
+ if ( ! in_array($k, $this->_test_items_visible))
+ {
+ continue;
+ }
if (FALSE !== ($line = $CI->lang->line(strtolower('ut_'.$v))))
$v = $line;
1  user_guide_src/source/changelog.rst
@@ -349,6 +349,7 @@ Bug fixes for 3.0
- Fixed a bug in SQLSRV's ``affected_rows()`` method where an erroneous function name was used.
- Fixed a bug (#1000) - Change syntax of ``$view_file`` to ``$_ci_view_file`` to prevent being overwritten by application.
- Fixed a bug (#1757) - :doc:`Directory Helper <helpers/directory_helper>` function ``directory_map()`` was skipping files and directories named *0*.
+- Fixed a bug (#395) - :doc:`Unit Testing Library <libraries/Unit_test>` method ``result()`` didn't properly check array result columns against _test_items_visible when called from ``report()`` method.
- Fixed a bug (#1789) - :doc:`Database Library <libraries/database>` method ``escape_str()`` escaped quote characters in LIKE conditions twice under MySQL.
Version 2.1.2
Something went wrong with that request. Please try again.