Completed
Push — master ( 658d5b...f22fae )
by John
02:32
created

ApiTestClient   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A requestFromRequest() 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\Test;
10
11
use Symfony\Bundle\FrameworkBundle\Client;
12
use Symfony\Component\BrowserKit\Request;
13
use Symfony\Component\DomCrawler\Crawler;
14
15
/**
16
 * @author John Kleijn <[email protected]>
17
 */
18
class ApiTestClient extends Client
19
{
20
    /**
21
     * Makes a request from a Request object directly.
22
     *
23
     * @param Request $request       A Request instance
24
     * @param bool    $changeHistory Whether to update the history or not (only used internally for back(), forward(),
25
     *                               and reload())
26
     *
27
     * @return Crawler
28
     */
29
    public function requestFromRequest(Request $request, $changeHistory = true)
30
    {
31
        return parent::requestFromRequest($request, $changeHistory);
32
    }
33
}
34