@@ 38-49 (lines=12) @@ | ||
35 | $this->assertArraySubset(['test_key' => '#!!test_content!!#'], $result); |
|
36 | } |
|
37 | ||
38 | public function testRenderCriteriaWithExpression() |
|
39 | { |
|
40 | $render = new Renderable\Render; |
|
41 | ||
42 | $render = new Renderable\Criteria($render); |
|
43 | ||
44 | $render = new Renderable\Expression($render); |
|
45 | ||
46 | $result = $render->handle('test_key', 'test_content'); |
|
47 | ||
48 | $this->assertArraySubset(['test_key' => '#!!test_content!!#'], $result); |
|
49 | } |
|
50 | ||
51 | public function testRenderSubset() |
|
52 | { |
|
@@ 62-71 (lines=10) @@ | ||
59 | $this->assertArraySubset(['test_key' => 'test_content'], $result); |
|
60 | } |
|
61 | ||
62 | public function testRenderSubsetWhitDotNotation() |
|
63 | { |
|
64 | $render = new Renderable\Render; |
|
65 | ||
66 | $render = new Renderable\Subset($render); |
|
67 | ||
68 | $result = $render->handle('test.key', 'test_content'); |
|
69 | ||
70 | $this->assertArraySubset(['test' => ['key' => 'test_content']], $result); |
|
71 | } |
|
72 | ||
73 | public function testRenderSubsetExpressionWhitDotNotation() |
|
74 | { |
|
@@ 73-84 (lines=12) @@ | ||
70 | $this->assertArraySubset(['test' => ['key' => 'test_content']], $result); |
|
71 | } |
|
72 | ||
73 | public function testRenderSubsetExpressionWhitDotNotation() |
|
74 | { |
|
75 | $render = new Renderable\Render; |
|
76 | ||
77 | $render = new Renderable\Subset($render); |
|
78 | ||
79 | $render = new Renderable\Expression($render); |
|
80 | ||
81 | $result = $render->handle('test.key', 'test_content'); |
|
82 | ||
83 | $this->assertArraySubset(['test' => ['key' => '#!!test_content!!#']], $result); |
|
84 | } |
|
85 | } |
|
86 |