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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
B providerCreateUrl() 0 42 1
A testCreateUrl() 0 4 1
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