Completed
Pull Request — master (#7)
by Siwapun
04:49 queued 03:16
created

LtTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
dl 0
loc 24
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testLtWithFirstArgIsGreaterThanSecondOne() 0 6 1
A testLtWithFirstArgIsLessThanSecondOne() 0 6 1
A testLtWithFirstArgIsEqualToSecondOne() 0 6 1
1
<?php
2
namespace Aerophant\RamdaTest;
3
4
use function Aerophant\Ramda\lt;
5
use PHPUnit\Framework\TestCase;
6
7
class LtTest extends TestCase
8
{
9
  public function testLtWithFirstArgIsLessThanSecondOne()
10
  {
11
    $firstArg = 1;
12
    $secondArg = 2;
13
    $actual = lt($firstArg)($secondArg);
14
    $this->assertTrue($actual);
15
  }
16
17
  public function testLtWithFirstArgIsEqualToSecondOne()
18
  {
19
    $firstArg = 2;
20
    $secondArg = 2;
21
    $actual = lt($firstArg)($secondArg);
22
    $this->assertFalse($actual);
23
  }
24
25
  public function testLtWithFirstArgIsGreaterThanSecondOne()
26
  {
27
    $firstArg = 3;
28
    $secondArg = 2;
29
    $actual = lt($firstArg)($secondArg);
30
    $this->assertFalse($actual);
31
  }
32
}
33