Completed
Push — master ( 7c1d11...d7e590 )
by Johannes
03:46
created

TestContainerConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 3
dl 0
loc 25
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A define() 0 8 1
A modify() 0 3 1
1
<?php
2
/**
3
 * Lichtenwallner  (https://lichtenwallner.at)
4
 *
5
 * @see https://github.com/jolicht/markdown-cms for the canonical source repository
6
 * @license https://github.com/jolicht/markdown-cms/blob/master/LICENSE MIT
7
 * @copyright Copyright (c) Johannes Lichtenwallner
8
 */
9
declare(strict_types = 1);
10
namespace JolichtTest\MarkdownCms;
11
12
use Aura\Di\ContainerConfigInterface;
13
use Aura\Di\Container;
14
use Zend\Expressive\Template\TemplateRendererInterface;
15
use Prophecy\Prophet;
16
17
class TestContainerConfig implements ContainerConfigInterface
18
{
19
    /**
20
     * Define
21
     * {@inheritDoc}
22
     * @see \Aura\Di\ContainerConfigInterface::define()
23
     */
24
    public function define(Container $di)
25
    {
26
        $prophet = new Prophet();
27
        $renderer = $prophet->prophesize(TemplateRendererInterface::class)->reveal();
28
29
        $di->set(TemplateRendererInterface::class, $renderer);
30
31
    }
32
33
    /**
34
     * Modify
35
     * {@inheritDoc}
36
     * @see \Aura\Di\ContainerConfigInterface::modify()
37
     */
38
    public function modify(Container $di)
39
    {
40
    }
41
}