class_exists

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if the class has been defined
<?php class_exists(string $class, bool $autoload = true): bool
<?php     public function testAwaitShouldNotCreateAnyGarbageReferencesForResolvedPromise(callable $await)

    {

        if (class_exists('React\Promise\When')) {

            $this->markTestSkipped('Not supported on legacy Promise v1 API');

        }
<?php     public function testAwaitShouldNotCreateAnyGarbageReferencesForRejectedPromise(callable $await)

    {

        if (class_exists('React\Promise\When')) {

            $this->markTestSkipped('Not supported on legacy Promise v1 API');

        }
<?php             $this->markTestSkipped('Promises must be rejected with a \Throwable instance since Promise v3');

        }



        if (class_exists('React\Promise\When')) {

            $this->markTestSkipped('Not supported on legacy Promise v1 API');

        }
<?php     public function testCoroutineShouldNotCreateAnyGarbageReferencesWhenGeneratorReturns()

    {

        if (class_exists('React\Promise\When')) {

            $this->markTestSkipped('Not supported on legacy Promise v1 API');

        }
<?php     public function testCoroutineShouldNotCreateAnyGarbageReferencesForPromiseRejectedWithExceptionImmediately()

    {

        if (class_exists('React\Promise\When')) {

            $this->markTestSkipped('Not supported on legacy Promise v1 API');

        }
<?php     public function testCoroutineShouldNotCreateAnyGarbageReferencesForPromiseRejectedWithExceptionOnCancellation()

    {

        if (class_exists('React\Promise\When')) {

            $this->markTestSkipped('Not supported on legacy Promise v1 API');

        }
<?php     public function testCoroutineShouldNotCreateAnyGarbageReferencesWhenGeneratorThrowsBeforeFirstYield()

    {

        if (class_exists('React\Promise\When')) {

            $this->markTestSkipped('Not supported on legacy Promise v1 API');

        }
<?php     public function testCoroutineShouldNotCreateAnyGarbageReferencesWhenGeneratorYieldsInvalidValue()

    {

        if (class_exists('React\Promise\When')) {

            $this->markTestSkipped('Not supported on legacy Promise v1 API');

        }