1 | <?php |
||
11 | final class TemplatingContext implements Context |
||
12 | { |
||
13 | private $templating; |
||
14 | |||
15 | private $articleLoader; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $lastRenderedContent; |
||
21 | |||
22 | public function __construct(\Twig_Environment $templating, ArticleLoader $articleLoader) |
||
27 | |||
28 | /** |
||
29 | * @Given I set :slug as a current article in the context |
||
30 | */ |
||
31 | public function IsetAsACurrentArticleInTheContext(string $slug): void |
||
35 | |||
36 | /** |
||
37 | * @Given I render a template with content: |
||
38 | */ |
||
39 | public function iRenderATemplateWithContent(PyStringNode $templateContent): void |
||
44 | |||
45 | /** |
||
46 | * @Then rendered template should contain :searchString |
||
47 | */ |
||
48 | public function renderedTemplateShouldContain(string $searchString): void |
||
54 | |||
55 | /** |
||
56 | * @Then rendered template should not contain :searchString |
||
57 | */ |
||
58 | public function renderedTemplateShouldNotContain(string $searchString) |
||
64 | |||
65 | /** |
||
66 | * @Then rendered template should be equal to: |
||
67 | */ |
||
68 | public function renderedTemplateShouldBeEqualTo(PyStringNode $templateContent): void |
||
74 | } |
||
75 |