meraproject/vendor/yoomoney/yookassa-sdk-php/tests/Common/LegacyJsonInterfaceTest.php
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

22 lines
584 B
PHP

<?php
namespace Tests\YooKassa\Common;
use PHPUnit\Framework\TestCase;
class LegacyJsonSerializableInterfaceTest extends TestCase
{
public function testInterface()
{
require_once __DIR__ . '/../../lib/Common/legacy_json_serializable.php';
$reflection = new \ReflectionClass('JsonSerializable');
self::assertTrue($reflection->isInterface());
if (version_compare('5.4', PHP_VERSION) < 0) {
self::assertTrue($reflection->isInternal());
} else {
self::assertTrue($reflection->isUserDefined());
}
}
}