Passed
Push — master ( 0df4f1...5c4201 )
by Siwapun
10:22
created

OrLogicallyTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testOrLogicallyWithFalseAndFalse() 0 4 1
A testOrLogicallyWithTrueAndFalse() 0 4 1
1
<?php
2
3
namespace Aerophant\RamdaTest;
4
5
use function Aerophant\Ramda\orLogically;
6
use PHPUnit\Framework\TestCase;
7
8
class OrLogicallyTest extends TestCase
9
{
10
  public function testOrLogicallyWithTrueAndFalse()
11
  {
12
    $actual = orLogically(true)(false);
13
    $this->assertTrue($actual);
14
  }
15
16
  public function testOrLogicallyWithFalseAndFalse()
17
  {
18
    $actual = orLogically(false)(false);
19
    $this->assertFalse($actual);
20
  }
21
}
22