Passed
Push — master ( 59ebee...0b7415 )
by Siwapun
02:59
created

IncTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInc() 0 6 1
1
<?php
2
namespace Aerophant\RamdaTest;
3
4
use function Aerophant\Ramda\inc;
5
use PHPUnit\Framework\TestCase;
6
7
class IncTest extends TestCase
8
{
9
  public function testInc()
10
  {
11
    $value = 10;
0 ignored issues
show
Unused Code introduced by
The assignment to $value is dead and can be removed.
Loading history...
12
    $expect = 11;
13
    $actual = inc()(10);
14
    $this->assertEquals($expect, $actual);
15
  }
16
}
17