Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if a value exists in an array
<?php in_array(mixed $needle, array $haystack, bool $strict = false): bool
<?php         if (defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on legacy HHVM');

        }

        if (!in_array('unix', stream_get_transports())) {

            $this->markTestSkipped('Unix domain sockets (UDS) not supported on your platform (Windows?)');

        }
<?php     public function testConstructorThrowsForExistingUnixPath()

    {

        if (!in_array('unix', stream_get_transports())) {

            $this->markTestSkipped('Unix domain sockets (UDS) not supported on your platform (Windows?)');

        }
<?php         if (defined('HHVM_VERSION')) {

            $this->markTestSkipped('Not supported on legacy HHVM');

        }

        if (!in_array('unix', stream_get_transports())) {

            $this->markTestSkipped('Unix domain sockets (UDS) not supported on your platform (Windows?)');

        }
<?php     public function testConstructorThrowsForExistingUnixPath()

    {

        if (!in_array('unix', stream_get_transports())) {

            $this->markTestSkipped('Unix domain sockets (UDS) not supported on your platform (Windows?)');

        }
<?php     public function testValid()

    {

        if (!in_array('unix', stream_get_transports())) {

            $this->markTestSkipped('Unix domain sockets (UDS) not supported on your platform (Windows?)');

        }
<?php     public function setUpServer()

    {

        if (!in_array('unix', stream_get_transports())) {

            $this->markTestSkipped('Unix domain sockets (UDS) not supported on your platform (Windows?)');

        }