コード例 #1
0
ファイル: folder.php プロジェクト: hyb148/core
 public function testIsSubNode()
 {
     $file = new Node(null, null, '/foo/bar');
     $folder = new \OC\Files\Node\Folder(null, null, '/foo');
     $this->assertTrue($folder->isSubNode($file));
     $this->assertFalse($folder->isSubNode($folder));
     $file = new Node(null, null, '/foobar');
     $this->assertFalse($folder->isSubNode($file));
 }