1 | <?php |
||
2 | namespace Aerophant\RamdaTest; |
||
3 | |||
4 | use function Aerophant\Ramda\divide; |
||
5 | use function Aerophant\Ramda\partialRight; |
||
6 | use PHPUnit\Framework\TestCase; |
||
7 | |||
8 | class PartialRightTest extends TestCase |
||
9 | { |
||
10 | public function testPartial() |
||
11 | { |
||
12 | $double = partialRight(divide(), [2]); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
13 | $arg = 10; |
||
14 | $expectedResult = 5; |
||
15 | $actualResult = $double($arg); |
||
16 | $this->assertEquals($expectedResult, $actualResult); |
||
17 | } |
||
18 | } |
||
19 |