Lines Matching refs:fname
9 private $fname;
13 $this->fname = tempnam('/tmp', 'tfile');
15 if (file_exists($this->fname)) {
16 unlink($this->fname);
22 if (file_exists($this->fname)) {
23 unlink($this->fname);
29 $l = new LazyOpenStream($this->fname, 'w+');
32 $this->assertFileExists($this->fname);
33 $this->assertEquals('foo', file_get_contents($this->fname));
39 file_put_contents($this->fname, 'foo');
40 $l = new LazyOpenStream($this->fname, 'r');
57 file_put_contents($this->fname, 'foo');
58 $l = new LazyOpenStream($this->fname, 'r');