/** * {@inheritDoc} */ public function write($content) { $this->writer->write($content); return $this; }
function it_write_into_the_pipe(Pipe $output) { $output->write('test')->shouldBeCalled(1); $this->write('test')->shouldReturn($this); }
function it_read_the_content_of_the_pipe() { $pipe = new Pipe('/tmp/spec_file'); $pipe->write('the content'); $this->read()->shouldReturn('the content'); }