use PHPUnit\Framework\TestCase;
use Symfony\Component\Notifier\Bridge\Slack\Block\SlackContextBlock;
final class SlackContextBlockTest extends TestCase
{ public function testCanBeInstantiated() { $context =
new SlackContextBlock();
$context->
text('context text without emoji', false, false
);
$context->
text('context text verbatim', true, false, true
);
$context->
image('https://example.com/image.jpg', 'an image'
);
$context->
id('context_id'
);
$this->
assertSame([ 'type' => 'context',
'elements' =>
[ [ 'type' => 'plain_text',
'text' => 'context text without emoji',
'emoji' => false,
],
[