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
Push — master ( 5892ba...e25f6a )
by Baptiste
03:37 queued 29s
created

MemoryTest::testThrowWhenMemoryHigherThanHundred()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
declare(strict_types = 1);
3
4
namespace Tests\Innmind\Server\Status\Server\Process;
5
6
use Innmind\Server\Status\{
7
    Server\Process\Memory,
8
    Exception\OutOfBoundsPercentage,
9
};
10
use PHPUnit\Framework\TestCase;
11
12
class MemoryTest extends TestCase
13
{
14
    public function testInterface()
15
    {
16
        $memory = new Memory(42.24);
17
18
        $this->assertSame(42.24, $memory->toFloat());
19
        $this->assertSame('42.24%', $memory->toString());
20
    }
21
22
    public function testThrowWhenMemoryLowerThanZero()
23
    {
24
        $this->expectException(OutOfBoundsPercentage::class);
25
26
        new Memory(-1);
27
    }
28
29
    public function testThrowWhenMemoryHigherThanHundred()
30
    {
31
        $this->expectException(OutOfBoundsPercentage::class);
32
33
        new Memory(101);
34
    }
35
}
36