Completed
Pull Request — master (#2)
by Siwapun
13:33
created

AlwaysTest   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 testAlwaysMustReturnSameObject() 0 4 1
1
<?php
2
namespace Aerophant\RamdaTest;
3
4
use function Aerophant\Ramda\always;
5
use Aerophant\RamdaTest\Asset\PlainObjectAsset;
6
use PHPUnit\Framework\TestCase;
7
8
class AlwaysTest extends TestCase
9
{
10
11
  public function testAlwaysMustReturnSameObject()
12
  {
13
    $always = always()(new PlainObjectAsset());
14
    $this->assertSame($always(), $always());
15
  }
16
}
17