Skip to content

Commit

Permalink
Merge branch 'ytetsuro-patch-2'
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 4, 2016
2 parents 57b8010 + 1ca548a commit 956b507
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion application/tests/_ci_phpunit_test/CIPHPUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
class CIPHPUnitTestCase extends PHPUnit_Framework_TestCase
{
protected $_error_reporting = -1;


/**
* If you have a route with closure, PHPUnit can't serialize global variables.
* You would see `Exception: Serialization of 'Closure' is not allowed`.
*
* @var array
*/
protected $backupGlobalsBlacklist = ['RTR'];

/**
* @var CI_Controller CodeIgniter instance
*/
Expand Down
4 changes: 4 additions & 0 deletions docs/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## v0.13.0 (Not Released)

### Fixed

* Fix bug that routes with closure cause serialization errors. See [#139](https://github.com/kenjis/ci-phpunit-test/pull/139).

### Added

* Database test helpers. See [#133](https://github.com/kenjis/ci-phpunit-test/pull/133).
Expand Down

0 comments on commit 956b507

Please sign in to comment.