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.
Completed
Push — master ( fa9233...7f89d9 )
by Tomas
06:55
created

ClassParserTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A shouldParsePublicMethodsWithWebMethodAnnotation() 0 11 1
A shouldNotParseMagicMethods() 0 11 1
1
<?php
2
/**
3
 * ClassParserTest
4
 *
5
 * @author Piotr Olaszewski <[email protected]>
6
 */
7
use WSDL\Parser\ClassParser;
8
9
class ClassParserTest 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 shouldParsePublicMethodsWithWebMethodAnnotation()
15
    {
16
        //given
17
        $classParser = new ClassParser('\Mocks\MockClass');
18
19
        //when
20
        $classParser->parse();
21
22
        //then
23
        $this->assertCount(6, $classParser->getMethods());
24
    }
25
26
    /**
27
     * @test
28
     */
29
    public function shouldNotParseMagicMethods()
30
    {
31
        //given
32
        $classParser = new ClassParser('\Mocks\MockClass');
33
34
        //when
35
        $classParser->parse();
36
37
        //then
38
        $this->assertCount(6, $classParser->getMethods());
39
    }
40
}
41