Passed
Pull Request — master (#10)
by Siwapun
11:20 queued 07:57
created

IdentityTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIdentity() 0 5 1
1
<?php
2
namespace Aerophant\RamdaTest;
3
4
use function Aerophant\Ramda\identity;
5
use Aerophant\RamdaTest\Asset\PlainObjectAsset;
6
use PHPUnit\Framework\TestCase;
7
8
class IdentityTest extends TestCase
9
{
10
  public function testIdentity()
11
  {
12
    $value = new PlainObjectAsset();
13
    $actual = identity()($value);
14
    $this->assertSame($value, $actual);
15
  }
16
}
17