@@ 33-40 (lines=8) @@ | ||
30 | /** |
|
31 | * @test |
|
32 | */ |
|
33 | public function renderDelegatesIntoZendRendererWhenNoLayoutIsProvided() |
|
34 | { |
|
35 | $innerRender = $this->zendRenderer->render(Argument::type(ViewModel::class))->willReturn(''); |
|
36 | ||
37 | $this->simpleRenderer->render('foo'); |
|
38 | ||
39 | $innerRender->shouldHaveBeenCalledTimes(1); |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * @test |
|
@@ 45-52 (lines=8) @@ | ||
42 | /** |
|
43 | * @test |
|
44 | */ |
|
45 | public function renderDelegatesIntoZendRendererWhenLayoutIsProvided() |
|
46 | { |
|
47 | $innerRender = $this->zendRenderer->render(Argument::type(ViewModel::class))->willReturn(''); |
|
48 | ||
49 | $this->simpleRenderer->render('foo', ['layout' => 'bar']); |
|
50 | ||
51 | $innerRender->shouldHaveBeenCalledTimes(2); |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @test |