/**
  * @test
  */
 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));
 }