| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace la_restaurant_theme;
- require_once("enviroment.php");
- $template = 'sample is <<! place !>> and <<!other!>> more';
- $first = 'sample is best and pink more';
- $second = 'sample is much and is more';
- $corrupted = 'sample is <<! <<! place !>> and <<!other!>> !>> more';
- $first_corrupted = 'sample is best and pink more';
- $first_result = renderer::from($template)
- ->set('place', 'best')
- ->set('other', 'pink')
- ->render();
- $second_result = renderer::from($template)
- ->set('place', 'much')
- ->set('other', 'is')
- ->render();
- $first_corrupted_result = renderer::from($template)
- ->set('place', 'best')
- ->set('other', 'pink')
- ->render();
- test($first, $first_result);
- test($second, $second_result);
- test($first_corrupted, $first_corrupted_result);
|