Failed Conditions
Pull Request — master (#790)
by Guilherme
05:12
created

TestsUtil   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 11
ccs 0
cts 8
cp 0
rs 10
c 1
b 0
f 0
wmc 1
1
<?php
2
/**
3
 * This file is part of the login-cidadao project or it's bundles.
4
 *
5
 * (c) Guilherme Donato <guilhermednt on github>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace PROCERGS\LoginCidadao\NfgBundle\Tests;
12
13
trait TestsUtil
14
{
15
    private function getRouter()
16
    {
17
        $router = $this->createMock('\Symfony\Component\Routing\RouterInterface');
18
        $router->expects($this->any())->method('generate')
19
            ->willReturnCallback(function ($routeName) {
20
                return $routeName;
21
            });
22
23
        return $router;
24
    }
25
}
26