namespace Symfony\Component\Notifier\Bridge\Slack\Tests\Block;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Notifier\Bridge\Slack\Block\SlackHeaderBlock;
use Symfony\Component\Notifier\Exception\LengthException;
final class SlackHeaderBlockTest extends TestCase
{ public function testCanBeInstantiated() { $header =
new SlackHeaderBlock('header text'
);
$header->
id('header_id'
);
$this->
assertSame([ 'type' => 'header',
'text' =>
[ 'type' => 'plain_text',
'text' => 'header text',
],
'block_id' => 'header_id',
],
$header->
toArray());
}