? Error

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
14 Jun 2015

Based on Symfony's PhpUnit bridge, this handler will catch E_USER_DEPRECATED and E_DEPRECATED messages triggered while running the unit test suite and display them at the end of the test output. This removes the need to silence deprecation messages in the unit test bootstrap and gives contributors an idea of deprecated code uses either in the core PHP platform or libraries.

Implementing this exposed a call to a non-static method in a static manner which only affects the unit test suite, this is also corrected.

Test Environment Changes

  • PHPUnit is no longer locked to the 4.1 branch, Composer config is updated to the current PHPUnit release (4.7.3)
  • PHP_CodeSniffer and Cache_Lite are correctly marked as dev dependencies in the Travis-CI configuration
  • Travis-CI is configured to trigger PHPUnit from our Composer installed location
  • E_STRICT and E_USER_DEPRECATED messages are no longer ignored

Production Code Changes

  • \Composer\Autoload\ClassLoader is updated to the latest version since composer update phpunit/phpunit was run

The below sample output comes from a Vagrant box running PHP 7:
screen shot 2015-06-13 at 10 13 16 pm

avatar mbabker mbabker - open - 14 Jun 2015
avatar Bakual Bakual - change - 14 Jun 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-06-14 09:33:49
Closed_By Bakual
Build 3.5-dev staging
avatar Bakual Bakual - close - 14 Jun 2015
avatar joomla-cms-bot joomla-cms-bot - close - 14 Jun 2015
avatar Bakual Bakual - reference | 4673a96 - 14 Jun 15
avatar Bakual Bakual - merge - 14 Jun 2015
avatar Bakual Bakual - close - 14 Jun 2015
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jun 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jun 2015
Labels Added: ?
avatar Bakual Bakual - change - 14 Jun 2015
Milestone Added:
avatar mbabker mbabker - head_ref_deleted - 14 Jun 2015

Add a Comment

Login with GitHub to post a comment