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

OrLogicallyTest::testOrLogicallyWithTrueAndFalse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
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\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