<?php namespace React\Tests\Stream; /** * Used to test dummy stream resources that do not support setting non-blocking mode * * @link http://php.net/manual/de/class.streamwrapper.php */ class EnforceBlockingWrapper { public function stream_open($path, $mode, $options, &$opened_path) { return true; } public function stream_cast($cast_as) { return false; } public function stream_eof() { return false; } public function stream_set_option($option, $arg1, $arg2) { if ($option === STREAM_OPTION_BLOCKING) { return false; } return true; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Stub | Folder | 0755 |
|
|
CallableStub.php | File | 104 B | 0644 |
|
CompositeStreamTest.php | File | 8.21 KB | 0644 |
|
DuplexResourceStreamIntegrationTest.php | File | 11.2 KB | 0644 |
|
DuplexResourceStreamTest.php | File | 14.42 KB | 0644 |
|
EnforceBlockingWrapper.php | File | 656 B | 0644 |
|
FunctionalInternetTest.php | File | 3.4 KB | 0644 |
|
ReadableResourceStreamTest.php | File | 11.37 KB | 0644 |
|
TestCase.php | File | 1.15 KB | 0644 |
|
ThroughStreamTest.php | File | 7.09 KB | 0644 |
|
UtilTest.php | File | 7.89 KB | 0644 |
|
WritableStreamResourceTest.php | File | 16.06 KB | 0644 |
|