コード例 #1
0
 /**
  * Test de cration d'un fichier, d'criture puis de lecture
  * @param string $pFileName le nom du fichier  tester
  */
 public function _testFile($pFileName)
 {
     $this->assertFalse(file_exists($pFileName));
     $this->assertTrue(CopixFile::write($pFileName, 'abcdef'));
     $this->assertTrue(file_exists($pFileName));
     $this->assertTrue(CopixFIle::read($pFileName) === 'abcdef');
     $this->assertTrue(CopixFile::write($pFileName, $this->_bigData));
     $this->assertTrue(CopixFile::read($pFileName) === $this->_bigData);
     $this->assertTrue(CopixFile::delete($pFileName));
     $this->assertFalse(file_exists($pFileName));
 }