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.
Passed
Branch master (bd52da)
by Andrey
04:54 queued 01:45
created

testHandleFromArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 5
nc 1
nop 3
1
<?php
2
3
/**
4
 * (c) itmedia.by <[email protected]>
5
 */
6
7
namespace Itmedia\CommandBusBundle\Tests\Command;
8
9
use Itmedia\CommandBusBundle\Tests\Stub\TestCommand;
10
use PHPUnit\Framework\TestCase;
11
use Symfony\Component\Validator\Constraints\NotBlank;
12
13
class HandlerPropertiesFromArrayTraitTest extends TestCase
14
{
15
16
17
    /**
18
     * @param $data
19
     * @param $email
20
     * @param $username
21
     *
22
     * @dataProvider provideArrayCommand
23
     */
24
    public function testHandleFromArray($data, $username, $email)
25
    {
26
        $command = new TestCommand();
27
        $command->handleFromArray($data);
28
29
        $this->assertEquals($command->getEmail(), $email);
30
        $this->assertEquals($command->getUsername(), $username);
31
    }
32
33
    public function provideArrayCommand()
34
    {
35
        return [
36
            [['username' => 'User', 'email' => '[email protected]'], 'User', '[email protected]'],
37
            [['username' => 'User', 'email' => '[email protected]', 'other_key' => 1], 'User', '[email protected]'],
38
            [['email' => '[email protected]'], null, '[email protected]'],
39
        ];
40
    }
41
}
42