Exemple #1
0
 public function testFileForceContent()
 {
     $obj = new _Utils();
     $base_folder = TEST_FILES . 'dotlang/temp/';
     $file_name = 'test_forced.lang';
     $path = $base_folder . $file_name;
     $content = "Just a test";
     // File should not exist before the test
     $this->boolean(file_exists($path))->isFalse();
     $obj->fileForceContent($path, $content);
     // File should exist now
     $this->boolean(file_exists($path))->isTrue();
     // Delete the file and the folder
     unlink($path);
     rmdir($base_folder);
 }