PHPUnit: Stubbing multiple interfaces
It is not a good idea to create an interface in application codebase to make tests happy. I mean you can create this interface but it would better if you put it somewhere in the test code base. For example you can put the interface after the test case class in the file directly
To test two interfaces same time I created an interface in the test case file (it could be any other place)
interface ApiAwareAction implements ActionInterface, ApiAwareInterface{}
And after I did a mock of that class:
$this->getMock('Payum\Tests\ApiAwareAction');