Lines Matching refs:file
12 $file = new FileMock();
13 $file->put('hi');
22 $file = new FileMock();
23 $file->get();
29 $file = new FileMock();
30 $this->assertEquals(0,$file->getSize());
37 $file = new FileMock();
38 $this->assertNull($file->getETag());
44 $file = new FileMock();
45 $this->assertNull($file->getContentType());
54 $file = new FileMock();
55 $file->delete();
64 $file = new FileMock();
65 $file->setName('hi');
71 $file = new FileMock();
73 $lastMod = $file->getLastModified();
82 $file = $dir->getChild('mockfile');
83 $this->assertTrue($file instanceof FileMock);
107 $file = $dir->getChild('blabla');
143 $file = new FileMock();
144 $dir = new SimpleCollection('simpledir',array($file));
147 $this->assertEquals($file,$file2);
166 $file = new FileMock();
168 $dir->addChild($file);
171 $this->assertEquals($file,$file2);
181 $file = new FileMock();
183 $dir->addChild($file);
185 $this->assertEquals(array($file),$dir->getChildren());