I'm just looking at Omnipay with the aim of adding support for another gateway. After installing with Composer, I tried running the Paypal (as an example gateway) and Omnipay Common tests. With both packages, I adjusted bootstrap.php so that it could locate the composer autoload file. The Paypal tests run fine (green).
However, the common tests fail with 1 failure and 38 errors. All failures/errors are in AbstractGatewayTest, AbstractRequestTest, AbstractResponseTest.
This leads me to wonder if something changed in how PHPUnit or Mockery handle mocked abstract classes. I'm using PHPUnit 3.7.34. I have most recently been using PHPUnit 4.0.* for Laravel projects, but Omnipay requires 3.7.
composer.lock indicates I'm using Mockery 0.9.0. I'm running php 5.4.* installed via macports on OS X Mavericks.
Anyone have insight into what might be tripping me up? Thanks!
EDIT: Sample failure messages:
There were 38 errors:
1) Omnipay\Common\AbstractGatewayTest::testGetShortName
BadMethodCallException: Method Mockery_0_Omnipay_Common_AbstractGateway::getDefaultParameters() does not exist on this mock object
.../vendor/omnipay/common/src/Omnipay/Common/AbstractGateway.php:53
.../vendor/omnipay/common/src/Omnipay/Common/AbstractGateway.php:40
.../vendor/mockery/mockery/library/Mockery/Container.php:426
.../vendor/mockery/mockery/library/Mockery/Container.php:210
.../vendor/mockery/mockery/library/Mockery.php:71
.../vendor/omnipay/common/tests/Omnipay/Common/AbstractGatewayTest.php:12
2) Omnipay\Common\Message\AbstractRequestTest::testInitializeWithParams
Argument 1 passed to Omnipay\Common\Message\AbstractRequest::__construct() must implement interface Guzzle\Http\ClientInterface, none given
.../vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:46
.../vendor/mockery/mockery/library/Mockery/Container.php:426
.../vendor/mockery/mockery/library/Mockery/Container.php:210
.../vendor/mockery/mockery/library/Mockery.php:71
.../vendor/omnipay/common/tests/Omnipay/Common/Message/AbstractRequestTest.php:14
where "..." is my source code area.