public function testDirectoryCreateOpenAndDelete() { if (!$this->testWritable()) { return; } try { $file = Directory::create($this->getTestDir()); } catch (Exception $e) { $this->assert(false, "The directory could not be created with message: {$e->getMessage()}."); } try { $file = Directory::open($file->getPathname()); } catch (Exception $e) { $this->assert(false, "The directory could not be opened with message: {$e->getMessage()}."); } try { $file->delete(); } catch (Exception $e) { $this->assert(false, "The directory {$file->getPathname()} could not be deleted with message: {$e->getMessage()}."); } }