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