/** * @param \Gaufrette\Stream $stream */ function it_should_tell_about_position_in_stream($stream) { $stream->tell()->shouldBeCalled()->willReturn(12); $this->stream_open('gaufrette://some/filename', 'w+'); $this->stream_tell()->shouldReturn(12); }
/** * @param \Gaufrette\Stream $stream */ function it_does_tell_about_position_in_stream($stream) { $stream->open(Argument::any())->willReturn(true); $stream->tell()->shouldBeCalled()->willReturn(12); $this->stream_open('gaufrette://some/filename', 'w+'); $this->stream_tell()->shouldReturn(12); }