示例#1
0
 public function testGetRemoteResource()
 {
     $fileReadMock = $this->getMock('Magento\\Framework\\Filesystem\\File\\ReadInterface', array(), array(), '', false);
     $this->_fileReadFactoryMock->expects($this->once())->method('create')->with('example.com', 'http')->will($this->returnValue($fileReadMock));
     $this->assertEquals($fileReadMock, $this->_filesystem->getRemoteResource('http://example.com'));
 }