Neos\Flow\Tests\Unit\ResourceManagement\Streams\StreamWrapperAdapterTest::stream_set_optionTest PHP Метод

stream_set_optionTest() публичный Метод

    public function stream_set_optionTest()
    {
        if (defined('HHVM_VERSION')) {
            $this->markTestSkipped('stream_set_option is not supported in HHVM (see http://docs.hhvm.com/manual/en/streamwrapper.stream-set-option.php)');
        }
        $option = STREAM_OPTION_READ_TIMEOUT;
        $arg1 = 123;
        $arg2 = 123000000;
        $this->mockStreamWrapper->expects($this->once())->method('setOption')->with($option, $arg1, $arg2)->will($this->returnValue(true));
        $this->assertTrue($this->streamWrapperAdapter->stream_set_option($option, $arg1, $arg2));
    }