public function testSymlink() { $file = new TempFile(); $file->append('foo'); $this->assertSame('foo', $file->getContent()); $link = new TempFile(); $link->unlink(); $file->link($link); $this->assertSame('foo', $link->getContent()); }