/**
  * @dataProvider providesNodes()
  */
 public function testGetContents($expected, $nodes)
 {
     $stream = \OCA\DAV\Upload\AssemblyStream::wrap($nodes);
     $content = stream_get_contents($stream);
     $this->assertEquals($expected, $content);
 }
Exemple #2
0
 /**
  * @inheritdoc
  */
 function get()
 {
     $nodes = $this->root->getChildren();
     return AssemblyStream::wrap($nodes);
 }