minor #22630 Filesystem: annotate the one network test with a "network" group. (orlitzky)

This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #22630).

Discussion
----------

Filesystem: annotate the one network test with a "network" group.

This is one tiny commit that lets us avoid hitting the network while running the test suite. We've packaged symfony-filesystem in Gentoo, and our users can run the test suite when they install it. However, network access is forbidden during the test phase (it causes spurious failures, privacy issues, etc.). By marking the one network test with `@group network`, we are able to skip it with `--exclude-group network`.

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

fd0dd57e74 Filesystem: annotate the one network test with a "network" group.
This commit is contained in:
Fabien Potencier 2017-05-04 11:16:16 -07:00
commit fd9459cdfd
1 changed files with 3 additions and 0 deletions

View File

@ -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';