stellar-php/stellar

View on GitHub
src/Common/Testing/AssertSingleton.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace Stellar\Common\Testing;

/**
 * @see:unit-test \UnitTests\Common\Testing\AssertSingletonTests
 */
trait AssertSingleton
{
    public static function assertSingleton($actual, string $message = '') : void
    {
        static::assertThat($actual, new Constraints\IsSingleton(), $message);
    }
}