コード例 #1
0
 /**
  * @param \Gaufrette\Stream $stream
  */
 function it_should_cast_stream($stream)
 {
     $stream->cast(STREAM_CAST_FOR_SELECT)->willReturn('resource');
     $this->stream_open('gaufrette://some/filename', 'w+');
     $this->stream_cast(STREAM_CAST_FOR_SELECT)->shouldReturn('resource');
 }
コード例 #2
0
 /**
  * @param \Gaufrette\Stream $stream
  */
 function it_casts_stream($stream)
 {
     $stream->open(Argument::any())->willReturn(true);
     $stream->cast(STREAM_CAST_FOR_SELECT)->willReturn('resource');
     $this->stream_open('gaufrette://some/filename', 'w+');
     $this->stream_cast(STREAM_CAST_FOR_SELECT)->shouldReturn('resource');
 }