aerophant /
ramda
| 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
Loading history...
|
|||
| 13 | $secondValue = 3; |
||
|
0 ignored issues
–
show
|
|||
| 14 | $expect = 3; |
||
| 15 | $actual = min(9)(3); |
||
| 16 | $this->assertEquals($expect, $actual); |
||
| 17 | } |
||
| 18 | } |
||
| 19 |