Remove skip condition that is no longer needed

This commit is contained in:
Sebastian Bergmann 2025-12-31 17:45:07 +01:00
parent 2f6cbc5b83
commit 968ad065d7
No known key found for this signature in database
GPG Key ID: 4AA394086372C20A
1 changed files with 0 additions and 6 deletions

View File

@ -21,7 +21,6 @@ use function is_resource;
use function is_string;
use function mb_internal_encoding;
use function mb_language;
use function method_exists;
use function preg_replace;
use function range;
use function str_repeat;
@ -29,7 +28,6 @@ use Error;
use Exception;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\RequiresPhp;
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\TestCase;
@ -567,14 +565,10 @@ EOF;
$this->assertEquals('*RECURSION*', (new Exporter)->shortenedRecursiveExport($value, processed: $context));
}
#[RequiresPhp('^8.4')]
public function testShortenedExportDoesNotInitializeLazyObject(): void
{
$reflector = new ReflectionClass(ExampleClass::class);
assert(method_exists($reflector, 'newLazyProxy'));
assert(method_exists($reflector, 'isUninitializedLazyObject'));
$object = $reflector->newLazyProxy(static fn () => new ExampleClass('bar'));
(new Exporter)->shortenedExport($object, 10);