public function testGetDriver() { $this->assertInstanceOf('Magento\\Framework\\Filesystem\\DriverInterface', $this->write->getDriver(), 'getDriver method expected to return instance of Magento\\Framework\\Filesystem\\DriverInterface'); }
/** * Sanitize path * * @param string $path * @return string */ protected function _sanitizePath($path) { return rtrim(preg_replace('~[/\\\\]+~', '/', $this->_directory->getDriver()->getRealPath($path)), '/'); }