src/Assert.php
public static function assertSame($expected, $actual, string $message = '')
    {
        self::$count += 1;

        if ($expected === $actual) {
            return;
        }
        if (!$message) {
            $message = sprintf(
                'Failed asserting that %s matches %s',
                var_export($actual, true),
                var_export($expected, true)
            );
        }
        throw new AssertionError($message);
    }
public static function assertSame($expected, $actual, string $message = '')
    {
        self::$count += 1;

        if ($expected === $actual) {
            return;
        }
        if (!$message) {
            $message = sprintf(
                'Failed asserting that %s matches %s',
                var_export($actual, true),
                var_export($expected, true)
            );
        }
        throw new AssertionError($message);
    }
public static function assertSame ( $ expected , $ actual , string $ message = '' ) { self :: $ count += 1 ; if ( $ expected === $ actual ) { return ; } if ( ! $ message ) { $ message = sprintf ( 'Failed asserting that %s matches %s' , var_export ( $ actual , true ) , var_export ( $ expected , true ) ) ; } throw new AssertionError ( $ message ) ; }
Test if the actual value matches the expected

@example
\Cundd\TestFlight\Assert::assertSame([], []);
\Cundd\TestFlight\Assert::assertSame(true, true);
\Cundd\TestFlight\Assert::assertSame(PHP_INT_MAX, PHP_INT_MAX);
$object = new stdClass(); \Cundd\TestFlight\Assert::assertSame($object, $object);
test_flight_throws(function() { \Cundd\TestFlight\Assert::assertSame(true, false); });
test_flight_throws(function() { \Cundd\TestFlight\Assert::assertSame([], [1]); });
test_flight_throws(function() use($object) { \Cundd\TestFlight\Assert::assertSame($object, new stdClass()); });

@param mixed  $expected
@param mixed  $actual
@param string $message
@throws AssertionError if the values are not equal
Test if the actual value matches the expected