Utils   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setRequestUri() 0 3 1
1
<?php
2
declare(strict_types = 1);
3
namespace Mezon\Router\Tests;
4
5
/**
6
 * Common unit-tests utilities
7
 * 
8
 * @author gdever
9
 */
10
trait Utils
11
{
12
13
    /**
14
     * Method sets request uri
15
     *
16
     * @param string $requestUri
17
     *            request uri
18
     */
19
    protected function setRequestUri(string $requestUri): void
20
    {
21
        $_SERVER['REQUEST_URI'] = $requestUri;
22
    }
23
}
24