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.

it_can_merge_multiple_arrays()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Spatie\Test;
4
5
use function spatie\array_merge_values;
6
use PHPUnit\Framework\TestCase;
7
8
class ArrayMergeValuesTest extends TestCase
9
{
10
    /**
11
     * @test
12
     */
13
    public function it_can_handle_an_empty_array()
14
    {
15
        $this->assertSame(array_merge_values([]), []);
16
    }
17
18
    /**
19
     * @test
20
     */
21
    public function it_can_merge_multiple_arrays()
22
    {
23
        $this->assertSame(array_merge_values([1, 2], [3, 4]), [1, 2, 3, 4]);
24
25
        $this->assertSame(array_merge_values([1, 2], [3, 4], [5, 6]), [1, 2, 3, 4, 5, 6]);
26
    }
27
28
    /**
29
     * @test
30
     */
31
    public function it_will_return_unique_values()
32
    {
33
        $this->assertSame(array_merge_values([1, 2, 3], [2, 3, 4]), [1, 2, 3, 4]);
34
35
        $this->assertSame(array_merge_values([1, 1, 1], [2, 2, 2]), [1, 2]);
36
    }
37
}
38