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

AndLogicallyTest   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 testAndLogicallyWithTrueAndTrue() 0 4 1
A testAndLogicallyWithTrueAndFalse() 0 4 1
1
<?php
2
namespace Aerophant\RamdaTest;
3
4
use function Aerophant\Ramda\andLogically;
5
use PHPUnit\Framework\TestCase;
6
7
class AndLogicallyTest extends TestCase
8
{
9
  public function testAndLogicallyWithTrueAndTrue()
10
  {
11
    $actual = andLogically(true)(true);
12
    $this->assertTrue($actual);
13
  }
14
15
  public function testAndLogicallyWithTrueAndFalse()
16
  {
17
    $actual = andLogically(true)(false);
18
    $this->assertFalse($actual);
19
  }
20
}
21