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

ApiRequestTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A canChain() 0 11 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\Test;
10
11
use KleijnWeb\SwaggerBundle\Test\ApiRequest;
12
13
/**
14
 * @author John Kleijn <[email protected]>
15
 */
16
class ApiRequestTest extends \PHPUnit_Framework_TestCase
17
{
18
    /**
19
     * @test
20
     */
21
    public function canChain()
22
    {
23
        (new ApiRequest('/', 'POST'))
24
            ->setContent('')
25
            ->setCookies([])
26
            ->setFiles([])
27
            ->setMethod('POST')
28
            ->setParameters([])
29
            ->setServer([])
30
            ->setUri('/');
31
    }
32
}
33