use Symfony\Component\Messenger\Handler\HandlerDescriptor;
use Symfony\Component\Messenger\Stamp\HandledStamp;
use Symfony\Component\Messenger\Tests\Fixtures\DummyCommandHandler;
class HandledStampTest extends TestCase
{ public function testConstruct() { $stamp =
new HandledStamp('some result', 'FooHandler::__invoke()'
);
$this->
assertSame('some result',
$stamp->
getResult());
$this->
assertSame('FooHandler::__invoke()',
$stamp->
getHandlerName());
$stamp =
new HandledStamp('some result', 'FooHandler::__invoke()'
);
$this->
assertSame('some result',
$stamp->
getResult());
$this->
assertSame('FooHandler::__invoke()',
$stamp->
getHandlerName());
} public function testFromDescriptor() { $stamp = HandledStamp::
fromDescriptor(new HandlerDescriptor(new DummyCommandHandler()), 'some_result'
);