Completed
Pull Request — master (#48)
by John
02:30
created

ApiTestClient::requestFromRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
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