public function dir_opendir($path, $options) { $this->path = $path; self::recordMethodCall('dir_opendir', $this->path); return parent::dir_opendir($path, $options); }