Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tells whether the filename is a directory
<?php is_dir(string $filename): bool
<?php {

    public function testCtorAddsResourceToLoop()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testCtorThrowsForUnknownFd()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testCtorThrowsIfFdIsAFileAndNotASocket()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testCtorThrowsIfFdIsAConnectedSocketInsteadOfServerSocket()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testGetAddressReturnsSameAddressAsOriginalSocketForIpv4Socket()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testGetAddressReturnsSameAddressAsOriginalSocketForIpv4SocketGivenAsUrlToFd()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testGetAddressReturnsSameAddressAsOriginalSocketForIpv6Socket()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testGetAddressReturnsSameAddressAsOriginalSocketForUnixDomainSocket()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testGetAddressReturnsNullAfterClose()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testCloseRemovesResourceFromLoop()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testCloseTwiceRemovesResourceFromLoopOnce()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testResumeWithoutPauseIsNoOp()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testPauseRemovesResourceFromLoop()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testPauseAfterPauseIsNoOp()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }
<?php     public function testServerEmitsConnectionEventForNewConnection()

    {

        if (!is_dir('/dev/fd') || defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on your platform');

        }