spec\Fenos\Notifynder\Parsers\NotifynderParserSpec::it_replace_both_in_a_string PHP Метод

it_replace_both_in_a_string() публичный Метод

    public function it_replace_both_in_a_string()
    {
        $extra = ['hello' => 'world'];
        $notification = ['body' => ['text' => 'Hi {to.username} hello {extra.hello}'], 'to' => ['username' => 'jhon'], 'extra' => json_encode($extra)];
        $this->parse($notification)->shouldReturn('Hi jhon hello world');
    }