Completed
Push — master ( 847d00...93d710 )
by Siwapun
04:05
created

MinTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

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