Files
gentoo/dev-php/symfony-filesystem/files/annotate-network-tests.patch
Michael Orlitzky 0444c1df21 dev-php/symfony-filesystem: new version 3.2.8.
This new version adds a tiny patch to annotate the one test that
requires network access. Afterwards, we are able to enable the test
suite and skip the network test. The test suite passes, so I've
removed the RESTRICT=test that we had. The patch is reflected
in upstream (symfony/symfony) pull request 22630.

Another small improvement is to spell out the files and directories to
be installed, rather than using "." (the whole directory). This avoids
installing composer.json and some other junk to the PHP include
directory.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
2017-05-04 07:33:07 -04:00

28 lines
865 B
Diff

From cda6fa8801d04b149592c5789c0d060c4ca4e9db Mon Sep 17 00:00:00 2001
From: Michael Orlitzky <michael@orlitzky.com>
Date: Wed, 3 May 2017 18:33:56 -0400
Subject: [PATCH 1/1] Annotate the one network test as being a part of the
"network" group.
---
Tests/FilesystemTest.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Tests/FilesystemTest.php b/Tests/FilesystemTest.php
index 1341392..a862fa8 100644
--- a/Tests/FilesystemTest.php
+++ b/Tests/FilesystemTest.php
@@ -156,6 +156,9 @@ class FilesystemTest extends FilesystemTestCase
$this->assertEquals('SOURCE FILE', file_get_contents($targetFilePath));
}
+ /**
+ * @group network
+ */
public function testCopyForOriginUrlsAndExistingLocalFileDefaultsToCopy()
{
$sourceFilePath = 'http://symfony.com/images/common/logo/logo_symfony_header.png';
--
2.10.2