/**
  * @test
  * @group  issue_1
  * @since  8.1.0
  */
 public function copyFromEmptyInputStreamResultsInNothingReceivedOnOutputStream()
 {
     $in = new MemoryInputStream('');
     $out = new MemoryOutputStream();
     copy($in)->to($out);
     assertEmptyString($out->buffer());
 }
 /**
  * @test
  * @dataProvider  reflectorWithUndefinedDocComments
  * @since  8.0.1
  */
 public function undefinedDocCommentIsEmpty(\Reflector $reflector)
 {
     assertEmptyString(docComment($reflector));
 }
Esempio n. 3
0
 /**
  * @since  2.1.2
  * @test
  */
 public function queryStringIsEmptyIfNoneGiven()
 {
     assertEmptyString(Uri::fromString('http://example.org/foo')->queryString());
 }
 /**
  * @test
  */
 public function readAfterEofReturnsEmptyString()
 {
     $this->resourceInputStream->read();
     assertEmptyString($this->resourceInputStream->read());
 }