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