Skip to content

Releases: kenjis/ci-phpunit-test

v0.14.0

09 Feb 08:18
Compare
Choose a tag to compare

Upgrade Note for PHPUnit 6.0 users

  • Please update application/tests/phpunit.xml. Replace it or apply this patch.

Added

  • download_helper for testing.
  • $this->newModel() for model unit testing. See #156.
  • $this->newLibrary() for library unit testing. See #161.
  • Now you can write test code for file uploading in controller testing. See #157.
  • Now Monkey Patching supports PHP 7.1 new syntax.

Fixed

  • Fix bug that include_paths and/or exclude_paths in Monkey Patching may not work correctly on Windows.

Others

  • Compatible with CodeIgniter 3.1.3
  • Update nikic/PHP-Parser to v2.1.1
  • Add nikic/PHP-Parser v3.0.3
  • Compatible with PHPUnit 6.0

v0.13.0

20 Nov 12:08
Compare
Choose a tag to compare

Upgrade Note

  • If you use database test helpers, please install tests/DbTestCase.php manually.

Added

  • Database test helpers. See #133.
  • Now you can return Closure with $this->getDouble(). See Function/Class Reference.
  • Now you can set constructor params with $this->getDouble(). See #130.
  • $this->newController() for controller unit testing. See #147.

Fixed

  • Fix bug that routes with closure cause serialization errors. See #139.

Others

  • Compatible with CodeIgniter 3.1.2

v0.12.2

24 Jul 04:30
Compare
Choose a tag to compare

Fixed

  • Fix bug that Method Patcher fails dealing with interfaces or abstract classes.
  • Fix bug that Method Patcher does not work on Windows.

Others

  • Update nikic/PHP-Parser to v2.1.0

v0.12.1

11 Jun 09:20
Compare
Choose a tag to compare

Fixed

  • Fix bug that Function Patcher on openssl_random_pseudo_bytes() may cause "Warning: Missing argument 2". See #119.
  • Fix bug that installation/update script for Composer installation causes "Notice: Undefined offset: 1".

v0.12.0

17 Apr 08:39
Compare
Choose a tag to compare

Added

Others

  • Update nikic/PHP-Parser to v2.0.1

v0.11.3

25 Mar 10:16
Compare
Choose a tag to compare

Fixed

  • assertRedirect() does not work with external redirects. See #104.

Others

  • Compatible with CodeIgniter 3.0.6
  • Improved installer. See #103.

v0.11.2

17 Mar 10:25
Compare
Choose a tag to compare

Others

  • Compatible with CodeIgniter 3.0.5

v0.11.1

22 Feb 02:33
Compare
Choose a tag to compare

Fixed

  • Fix bug that $this->input->get_request_header() returns the first header value for all tests. See #92.
  • Fix bug that config values are not reset between tests. See #94.
  • Fix bug that CI_Output::_display() is called even if you call a controller method directly (when you pass an array to the 2nd argument of $this->request()).

Others

  • Improved documentation for $this->request().

v0.11.0

20 Jan 11:20
Compare
Choose a tag to compare

Upgrade Note

  • Now ci-phpunit-test replaces CI_Input. If you use MY_Input, see How to Write Tests.
  • If you use Monkey Patching, please update tests/Bootstrap.php. See How to Write Tests.
  • If you use PsySH v0.5, please update to v0.6.

Added

  • $this->assertResponseCookie() to assert HTTP response cookies. See #88.
  • Now $this->request->enableHooks() calls hook display_override.
  • $this->request->addCallablePreConstructor() to add callable.
  • Now Moneky Patching can patch code with PHP 7 new syntax.
  • header() and setcookie() are added to Function Patcher's white list.

Fixed

  • _output() method in controllers does not work in controller testing.

Others

  • Compatible with CodeIgniter 3.0.4
  • Update nikic/PHP-Parser to v2.0.0

v0.10.1

31 Dec 09:44
Compare
Choose a tag to compare

Fixed

  • Fix bug that global variables for core classes are null. See #75.
  • Fix bug that can't use constant in config.php. See #78.
  • Fix bug that can't autoload library with alternative library name. See #79.
  • Fix bug that Function Patcher on openssl_random_pseudo_bytes() which returns null does not work.