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 testRejectionDuringDnsLookupShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testRejectionAfterDnsLookupShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testRejectionAfterDnsLookupShouldNotCreateAnyGarbageReferencesAgain()

    {

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

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

        }
<?php     public function testCancelDuringDnsLookupShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testCancelDuringTcpConnectionShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testCancellingPendingConnectionWithoutTimeoutShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testCancellingPendingConnectionShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testWaitingForRejectedConnectionShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testWaitingForConnectionTimeoutDuringDnsLookupShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testWaitingForConnectionTimeoutDuringTcpConnectionShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testWaitingForInvalidDnsConnectionShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testWaitingForInvalidTlsConnectionShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testWaitingForSuccessfullyClosedConnectionShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testRejectionDuringConnectionShouldNotCreateAnyGarbageReferences()

    {

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

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

        }
<?php     public function testRejectionDuringTlsHandshakeShouldNotCreateAnyGarbageReferences()

    {

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

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

        }