Completed
Pull Request — master (#64)
by John
02:40
created

TestRequestFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
c 1
b 1
f 0
lcom 0
cbo 2
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php
2
/*
3
 * This file is part of the KleijnWeb\SwaggerBundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace KleijnWeb\SwaggerBundle\Tests\Request;
10
11
use Symfony\Component\HttpFoundation\Request;
12
13
/**
14
 * @author John Kleijn <[email protected]>
15
 */
16
class TestRequestFactory extends \PHPUnit_Framework_TestCase
17
{
18
    /**
19
     * @param string|null $content
20
     *
21
     * @param array       $query
22
     *
23
     * @return Request
24
     */
25
    public static function create($content, array $query = [])
26
    {
27
        return new Request($query, [], [], [], [], [], $content);
28
    }
29
}
30