Completed
Pull Request — master (#19)
by Siwapun
04:02
created

MinTest::testMin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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