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 ( c7b337...c3c1cf )
by Cees-Jan
02:19
created

FunctionsTest::providerCreateUrl()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 42
Code Lines 31

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 42
rs 8.8571
cc 1
eloc 31
nc 1
nop 0
1
<?php
2
3
namespace WyriHaximus\Ratchet\Tests;
4
5
use Cake\TestSuite\TestCase;
6
7
class FunctionsTest extends TestCase
8
{
9
    public function providerCreateUrl()
10
    {
11
        yield [
12
            true,
13
            'example.com',
14
            443,
15
            'ws',
16
            'wss://example.com/ws',
17
        ];
18
19
        yield [
20
            true,
21
            'example.com',
22
            80,
23
            'ws',
24
            'wss://example.com:80/ws',
25
        ];
26
27
        yield [
28
            false,
29
            'example.com',
30
            80,
31
            'ws',
32
            'ws://example.com/ws',
33
        ];
34
35
        yield [
36
            false,
37
            'example.com',
38
            443,
39
            'ws',
40
            'ws://example.com:443/ws',
41
        ];
42
43
        yield [
44
            true,
45
            'example.com',
46
            9001,
47
            '',
48
            'wss://example.com:9001/',
49
        ];
50
    }
51
52
    /**
53
     * @dataProvider providerCreateUrl
54
     */
55
    public function testCreateUrl($secure, $hostname, $port, $path, $output)
56
    {
57
        $this->assertSame($output, \WyriHaximus\Ratchet\createUrl($secure, $hostname, $port, $path));
58
    }
59
}
60