bobbingwide / oik-clone

Clone content between sites
https://www.oik-plugins.com/oik-plugins/oik-clone-clone-your-wordpress-content/
GNU General Public License v2.0
5 stars 0 forks source link

Test with PHPUnit 8 #42

Closed bobbingwide closed 4 years ago

bobbingwide commented 4 years ago

PHPUnit 6 is out of support. oik-batch now requires PHPUnit 8. Tests which extend BW_UnitTestCase and override methods such as setUp, takeDown need to indicate that they don't return anything. Change

function setUp() {

to

function setUp() : void {

Applying this change to all my repositories is going to be mind numbingly boring even if I do use a tool to do it!

And all <testsuite> entries require a name parameter.

bobbingwide commented 4 years ago

I’ve been developing all the unit tests for issues #38 with PHPUnit 8. This can be closed.