Phpredis: Migrating to PHPUnit

Created on 2 Mar 2018  路  5Comments  路  Source: phpredis/phpredis

At the current state of the art, are there any major drawbacks to not use PHPUnit?

The current "test framework" implementation fullfills the needs quite ok, but using PHPUnit could give use in my eyes a few advantages:

  • Les maintainability of the custom Test suite implementation
  • More precise assertions (Not equals, Count more/less) including more detailed debugging messages
  • More flexible test suite configuration
  • Test grouping
  • Central setup and tear down management
  • In general better clarity and standardization
  • ...

What do you think?

Most helpful comment

There is no needness migrating to any other framework right now :smile:

All 5 comments

Common usage for PHP extension is to use the phpt format.

Especially when bootstrapping the PHP stack (full rebuild) the will make dependency / build order more complex, as usually the arched packages (binary extensions) are build before noarch ones (pure-PHP libraries / applications), and some people even prefer to build all extensions in the php tree.

So -1 to depend on PHPUnit.

IMO phpt format looks a bit strange/unfamiliarly but since it is a standart for php extensions I agree with @remicollet
@michael-grunder any thoughts?

I've never used phpt but am not opposed to the idea in principle.

We have a very large test suite so it will be no small task. I'll read up on phpt first. Perhaps some of the test migration could even be automated.

There is no needness migrating to any other framework right now :smile:

Maybe later. :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RobChen picture RobChen  路  4Comments

coolrecep picture coolrecep  路  3Comments

HunterEl picture HunterEl  路  4Comments

namjitharavind picture namjitharavind  路  4Comments

thilinadinith picture thilinadinith  路  5Comments