country example

namespace Symfony\Component\Notifier\Bridge\RingCentral\Tests;

use PHPUnit\Framework\TestCase;
use Symfony\Component\Notifier\Bridge\RingCentral\RingCentralOptions;

class RingCentralOptionsTest extends TestCase
{
    public function testRingCentralOptions()
    {
        $ringCentralOptions = (new RingCentralOptions())
            ->country('test_country_id', 'test_country_iso_code', 'test_country_name', 'test_country_uri', 'test_country_calling_code');

        self::assertSame([
            'country' => [
                'id' => 'test_country_id',
                'isoCode' => 'test_country_iso_code',
                'name' => 'test_country_name',
                'uri' => 'test_country_uri',
                'callingCode' => 'test_country_calling_code',
            ],
        ]$ringCentralOptions->toArray());
    }
}
    if (!isset($this->timezones[$timezone])) {
      $this->timezones[$timezone] = timezone_open($timezone);
    }

    if (empty($langcode)) {
      $langcode = $this->languageManager->getCurrentLanguage()->getId();
    }

    // Create a DrupalDateTime object from the timestamp and timezone.     $create_settings = [
      'langcode' => $langcode,
      'country' => $this->country(),
    ];
    $date = DrupalDateTime::createFromTimestamp($timestamp$this->timezones[$timezone]$create_settings);

    // If we have a non-custom date format use the provided date format pattern.     if ($type !== 'custom') {
      if ($date_format = $this->dateFormat($type$langcode)) {
        $format = $date_format->getPattern();
      }
    }

    // Fall back to the 'medium' date format type if the format string is
namespace Symfony\Component\Notifier\Bridge\ClickSend\Tests;

use PHPUnit\Framework\TestCase;
use Symfony\Component\Notifier\Bridge\ClickSend\ClickSendOptions;

class ClickSendOptionsTest extends TestCase
{
    public function testClickSendOptions()
    {
        $clickSendOptions = (new ClickSendOptions())
            ->country('test_country')
            ->customString('test_custom_string')
            ->fromEmail('test_from_email')
            ->listId('test_list_id')
            ->schedule(999)
            ->source('test_source');

        self::assertSame([
            'country' => 'test_country',
            'custom_string' => 'test_custom_string',
            'from_email' => 'test_from_email',
            'list_id' => 'test_list_id',
            
Home | Imprint | This part of the site doesn't use cookies.