GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

WrapperParserTest::shouldParseWrapperClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
/**
3
 * WrapperParserTest
4
 *
5
 * @author Piotr Olaszewski <[email protected]>
6
 */
7
use WSDL\Parser\WrapperParser;
8
9
class WrapperParserTest extends PHPUnit_Framework_TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
10
{
11
    /**
12
     * @test
13
     */
14
    public function shouldParseWrapperClass()
15
    {
16
        //given
17
        $parser = new WrapperParser('\Mocks\MockUserWrapper');
18
19
        //when
20
        $parser->parse();
21
22
        //then
23
        $complex = $parser->getComplexTypes();
24
        $this->assertCount(3, $complex);
25
    }
26
}
27