PhilippBaschke\ACFProInstaller\Test\RemoteFilesystemTest::testCopyUsesAcfFileUrl PHP Метод

testCopyUsesAcfFileUrl() публичный Метод

Inspired by testCopy of Composer
    public function testCopyUsesAcfFileUrl()
    {
        $acfFileUrl = 'file://' . __FILE__;
        $rfs = new RemoteFilesystem($acfFileUrl, $this->io);
        $file = tempnam(sys_get_temp_dir(), 'pb');
        $this->assertTrue($rfs->copy('http://example.org', 'does-not-exist', $file));
        $this->assertFileExists($file);
        unlink($file);
    }