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

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

    public function it_will_remove_extra_markup_if_extra_value_is_not_provided()
    {
        $extra = [];
        $notification = ['body' => ['text' => 'Hi {to.username} hello {extra.hello}'], 'to' => ['username' => 'jhon'], 'extra' => json_encode($extra)];
        // note the space, TODO: shall i remove it?
        $this->parse($notification)->shouldReturn('Hi jhon hello ');
    }