thephpleague / omnipay-tests

Test components for the Omnipay PHP payment processing library
MIT License
10 stars 35 forks source link

move functions to traits to allow any version of phpunit #15

Open gabrielsolomon opened 4 years ago

gabrielsolomon commented 4 years ago

By splitting the functionality in traits you can write test by importing only needed traits and not depending on a base omnipay test.

Also moving the phpunit to require-dev the package is decoupled from the phpunit. This way the developer can use which version he choses and only imports the traits where he needs them. He can also chose to import them in his one base test if he chose so