public function testMove() { // setup SpoonDirectory::create($this->path . '/move_org'); // copy SpoonDirectory::move($this->path . '/move_org', $this->path . '/move_dest'); // check if both folders exists $var = (bool) (!SpoonDirectory::exists($this->path . '/move_org') && SpoonDirectory::exists($this->path . '/move_dest')); // assert $this->assertTrue($var); // cleanup SpoonDirectory::delete($this->path . '/move_dest'); }
public function tearDown() { // remove directory $directory = realpath(dirname(__FILE__) . '/..') . '/tmp/logging'; SpoonDirectory::delete($directory); }