Esempio n. 1
0
 public function testIsSendParamSupported()
 {
     $adapterMock = $this->getMock(Adapter\AdapterInterface::class);
     $adapterMock->expects($this->any())->method("getAvailableSendParams")->will($this->returnValue(['foo']));
     /** @var $adapterMock Adapter\AdapterInterface */
     $q = new Queue('test', $adapterMock);
     $this->isTrue($q->isSendParamSupported('foo'));
     $this->isFalse($q->isSendParamSupported('bar'));
 }