Passed
Push — master ( 487089...443b76 )
by Chris
03:30
created

GetInfraredTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testWireSizeProperty() 0 3 1
A testTypeIdProperty() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace DaveRandom\LibLifxLan\Tests\Messages\Light\Requests;
4
5
use DaveRandom\LibLifxLan\Messages\Light\Requests\GetInfrared;
6
use PHPUnit\Framework\TestCase;
7
8
final class GetInfraredTest extends TestCase
9
{
10
    public function testTypeIdProperty(): void
11
    {
12
        $this->assertSame((new GetInfrared)->getTypeId(), GetInfrared::MESSAGE_TYPE_ID);
13
    }
14
15
    public function testWireSizeProperty(): void
16
    {
17
        $this->assertSame((new GetInfrared)->getWireSize(), GetInfrared::WIRE_SIZE);
18
    }
19
}
20