/** * @param \Gaufrette\Stream $stream */ function it_should_unlink($stream) { $stream->unlink()->willReturn(true); $this->unlink('gaufrette://some/filename')->shouldReturn(true); }
/** * @param \Gaufrette\Stream $stream */ function it_unlinks_file($stream) { $stream->open(Argument::any())->willReturn(true); $stream->unlink()->willReturn(true); $this->unlink('gaufrette://some/filename')->shouldReturn(true); }