/** * @test */ public function stream_set_optionTest() { $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)); }
/** * @test */ 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)); }