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.

BigIntegerIsImmutableTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testIsMutableEmpty() 0 11 1
A testIsMutableFalse() 0 11 1
A testIsMutableTrue() 0 11 1
1
<?php
2
3
namespace PHP\Math\BigIntegerTest;
4
5
use PHP\Math\BigInteger\BigInteger;
6
use PHPUnit_Framework_TestCase;
7
8
class BigIntegerIsImmutableTest extends PHPUnit_Framework_TestCase
9
{
10
    public function testIsMutableEmpty()
11
    {
12
        // Arrange
13
        $bigInteger = new BigInteger('123');
14
15
        // Act
16
        $result = $bigInteger->isMutable();
17
18
        // Assert
19
        $this->assertTrue($result);
20
    }
21
22
    public function testIsMutableFalse()
23
    {
24
        // Arrange
25
        $bigInteger = new BigInteger('123', false);
26
27
        // Act
28
        $result = $bigInteger->isMutable();
29
30
        // Assert
31
        $this->assertFalse($result);
32
    }
33
34
    public function testIsMutableTrue()
35
    {
36
        // Arrange
37
        $bigInteger = new BigInteger('123', true);
38
39
        // Act
40
        $result = $bigInteger->isMutable();
41
42
        // Assert
43
        $this->assertTrue($result);
44
    }
45
}
46