Permalink
Browse files

Apply parser processor new methods + observe $CFG->keeptempdirectorie…

…sonbackup
  • Loading branch information...
stronk7 authored and mudrd8mz committed Apr 14, 2011
1 parent be85390 commit 5b01180aede747f948d23522118db5885898604c
@@ -24,7 +24,9 @@ public function setUp() {
public function tearDown() {
global $CFG;
- fulldelete("$CFG->dataroot/temp/backup/$this->tempdir");
+ if (empty($CFG->keeptempdirectoriesonbackup)) {
+ fulldelete("$CFG->dataroot/temp/backup/$this->tempdir");
+ }
}
public function test_can_convert() {
@@ -38,4 +40,4 @@ public function test_convert() {
$this->assertIsA($converter, 'moodle1_converter');
$converter->convert();
}
-}
+}
@@ -69,4 +69,12 @@ protected function postprocess_chunk($data) {
protected function dispatch_chunk($data) {
$this->converter->process($data);
}
-}
+
+ protected function notify_path_start($path) {
+ // Do nothing
+ }
+
+ protected function notify_path_end($path) {
+ // Do nothing
+ }
+}

0 comments on commit 5b01180

Please sign in to comment.