Esempio n. 1
0
 /** @test */
 public function endShouldCloseTheStream()
 {
     $through = new WritableStream();
     $through->on(Event::DATA, $this->expectCallableNever());
     $through->end();
     $this->assertFalse($through->isWritable());
 }
 public function testPipeWillBeForwardedToTargetStream()
 {
     $target = new WritableStream();
     $target->on('pipe', $this->expectCallableOnceWith($this->parser));
     $this->parser->pipe($target);
 }