for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aerophant\RamdaTest;
use function Aerophant\Ramda\identical;
use Aerophant\RamdaTest\Asset\PlainObjectAsset;
use PHPUnit\Framework\TestCase;
class IdenticalTest extends TestCase
{
public function testIdenticalWithSameObject()
$firstValue = new PlainObjectAsset();
$secondValue = $firstValue;
$actual = identical($firstValue)($secondValue);
$this->assertTrue($actual);
}
public function testIdenticalWithDifferenceObject()
$secondValue = new PlainObjectAsset();
$this->assertFalse($actual);
public function testIdenticalWithSamePrimitiveValue()
$firstValue = '1';
$secondValue = '1';
public function testIdenticalWithDifferencePrimitiveValue()
$firstValue = '11';
$secondValue = '22';