ChatworkOptions example



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

use PHPUnit\Framework\TestCase;
use Symfony\Component\Notifier\Bridge\Chatwork\ChatworkOptions;

class ChatworkOptionsTest extends TestCase
{
    public function testSetTo()
    {
        $options = new ChatworkOptions();
        $options->to(['abc', 'def']);
        $this->assertSame(['to' => ['abc', 'def']]$options->toArray());

        $options->to('ghi');
        $this->assertSame(['to' => 'ghi']$options->toArray());
    }

    public function testSetSelfUnread()
    {
        $options = new ChatworkOptions();
        $options->selfUnread(true);
        
Home | Imprint | This part of the site doesn't use cookies.