Neos\Flow\Tests\Unit\ResourceManagement\Streams\StreamWrapperAdapterTest::stream_openTest PHP Method

stream_openTest() public method

public stream_openTest ( )
    public function stream_openTest()
    {
        $path = 'mockScheme1://foo/bar';
        $mode = 'r+';
        $options = STREAM_REPORT_ERRORS;
        $openedPath = '';
        $this->streamWrapperAdapter->expects($this->once())->method('createStreamWrapper')->with($path);
        $this->mockStreamWrapper->expects($this->once())->method('open')->with($path, $mode, $options, $openedPath)->will($this->returnValue(true));
        $this->assertTrue($this->streamWrapperAdapter->stream_open($path, $mode, $options, $openedPath));
    }