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