| 1 | <?php |
||
| 10 | final class TemplatingContext implements Context |
||
| 11 | { |
||
| 12 | private $templating; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $lastRenderedContent; |
||
| 18 | |||
| 19 | public function __construct(\Twig_Environment $templating) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @Given I render a template with content: |
||
| 26 | */ |
||
| 27 | public function iRenderATemplateWithContent(PyStringNode $templateContent): void |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @Then rendered template should contain :searchString |
||
| 35 | */ |
||
| 36 | public function renderedTemplateShouldContain(string $searchString): void |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @Then rendered template should not contain :searchString |
||
| 45 | */ |
||
| 46 | public function renderedTemplateShouldNotContain(string $searchString) |
||
| 52 | } |
||
| 53 |