Exemple #1
0
 public function testHardlink()
 {
     $file1 = new TempFile();
     $path = $file1->getPath() . '-hardlink';
     $file1->createHardLink($path);
     $file1->setContent('foo');
     $file2 = new File($path);
     $this->assertSame('foo', $file2->getContent());
     $file1->append('bar');
     $this->assertSame('foobar', $file2->getContent());
 }