use PHPUnit\Framework\TestCase;
use Symfony\Component\Notifier\Bridge\Discord\Embeds\DiscordFooterEmbedObject;
use Symfony\Component\Notifier\Exception\LengthException;
final class DiscordFooterEmbedObjectTest extends TestCase
{ public function testCanBeInstantiated() { $author =
(new DiscordFooterEmbedObject()) ->
text('foo'
) ->
iconUrl('http://icon-ur.l'
) ->
proxyIconUrl('http://proxy-icon-ur.l'
);
$this->
assertSame([ 'text' => 'foo',
'icon_url' => 'http://icon-ur.l',
'proxy_icon_url' => 'http://proxy-icon-ur.l',
],
$author->
toArray());
} public function testThrowsWhenTextExceedsCharacterLimit() { $this->
expectException(LengthException::
class);