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

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

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