public function testGetSizeAndCount() { $file = new TempFile(); $file->setContent('foo'); $file->clearStatCache(); $this->assertSame(3, $file->getSize()); $this->assertSame(3, count($file)); $file->append('bar'); $file->clearStatCache(); $this->assertSame(6, $file->getSize()); $this->assertSame(6, count($file)); }