for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* This file is part of the daikon-cqrs/money-interop project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Daikon\Tests\Money\Service;
use Daikon\Money\Service\PaymentServiceInterface;
use Daikon\Money\Service\PaymentServiceMap;
use PHPUnit\Framework\TestCase;
final class PaymentServiceMapTest extends TestCase
{
public function testConstruct(): void
$service = $this->createMock(PaymentServiceInterface::class);
$unwrappedMap = (new PaymentServiceMap(['a' => $service]))->unwrap();
$this->assertNotSame($service, $unwrappedMap['a']);
$this->assertEquals($service, $unwrappedMap['a']);
}