nategood / commando

An Elegant CLI Library for PHP
MIT License
798 stars 80 forks source link

Update unit tests for PHPUnit 6+ #73

Closed omnicolor closed 6 years ago

omnicolor commented 7 years ago

PHPUnit 6+ has changed from the old PEAR style namespace to real PHP namespacing, meaning PHPUnit_Framework_TestCase has been changed to PHPUnit\Framework\TestCase. PHPUnit 5.7 (old stable version) has a compatibility layer allowing this to work in old versions, but the old style namespacing won't work in new versions of PHPUnit.

omnicolor commented 7 years ago

Looks like Travis is failing for older versions since this PR only works for the more recent PHPUnit versions (old-stable 5.7 and current 6+).

If you want to support old versions at the expense of new versions, feel free to reject this PR.