Completed
Push — master ( 76f910...59ebee )
by Siwapun
05:41 queued 03:38
created

IdentityTest::testIdentity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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