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 — 3.x ( d805b4...27c796 )
by Jindřich
01:53
created

GetWebServiceTest::testGetWebService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 18

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 18
rs 9.6666
c 0
b 0
f 0
1
<?php
2
3
namespace Test\Skautis;
4
5
use Mockery;
6
use PHPUnit_Framework_TestCase;
7
use Skautis\Config;
8
use Skautis\Wsdl\WebServiceFactoryInterface;
9
use Skautis\Wsdl\WebServiceName;
10
use Skautis\Wsdl\WsdlManager;
11
use Skautis\Wsdl\WebServiceInterface;
12
13
class GetWebServiceTest extends PHPUnit_Framework_TestCase
14
{
15
16
    public function testGetWebService(): void
17
    {
18
        $wsA =  Mockery::mock(WebServiceInterface::class);
19
        $wsB = Mockery::mock(WebServiceInterface::class);
20
21
        $factory = Mockery::mock(WebServiceFactoryInterface::class);
22
        $factory->shouldReceive('createWebService')->twice()->andReturn($wsA, $wsB);
23
24
        $config = new Config('42');
25
26
        $manager = new WsdlManager($factory, $config);
27
28
        $this->assertNotSame($wsA, $wsB);
29
        $this->assertSame($wsA, $manager->getWebService(WebServiceName::USER_MANAGEMENT));
30
        $this->assertSame($wsA, $manager->getWebService(WebServiceName::USER_MANAGEMENT));
31
        $this->assertSame($wsA, $manager->getWebService(WebServiceName::USER_MANAGEMENT));
32
        $this->assertSame($wsB, $manager->getWebService(WebServiceName::APPLICATION_MANAGEMENT));
33
    }
34
}
35
36