public function testIsReceiveParamSupported() { $adapterMock = $this->getMock(Adapter\AdapterInterface::class); $adapterMock->expects($this->any())->method('getAvailableReceiveParams')->will($this->returnValue(['foo'])); /** @var $adapterMock Adapter\AdapterInterface */ $q = new Queue('test', $adapterMock); $this->isTrue($q->isReceiveParamSupported('foo')); $this->isFalse($q->isReceiveParamSupported('bar')); }