minor #10719 [Finder] Marked test skipped when ftp stream wrapper is not available (deguif)
This PR was merged into the 2.3 branch.
Discussion
----------
[Finder] Marked test skipped when ftp stream wrapper is not available
| Q | A
| ---------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| License | MIT
This should prevent test from failing on hhvm as ftp stream wrapper is not currently implemented.
See https://github.com/facebook/hhvm/issues/2108 for more details.
Commits
-------
f35fc81
[Finder] Marked test skipped when ftp stream wrapper is not available
This commit is contained in:
commit
7b7a0efce2
@ -824,6 +824,10 @@ class FinderTest extends Iterator\RealIteratorTestCase
|
|||||||
|
|
||||||
public function testNonSeekableStream()
|
public function testNonSeekableStream()
|
||||||
{
|
{
|
||||||
|
if (!in_array('ftp', stream_get_wrappers())) {
|
||||||
|
$this->markTestSkipped(sprintf('Unavailable stream "%s".', 'ftp'));
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$i = Finder::create()->in('ftp://ftp.mozilla.org/')->depth(0)->getIterator();
|
$i = Finder::create()->in('ftp://ftp.mozilla.org/')->depth(0)->getIterator();
|
||||||
} catch (\UnexpectedValueException $e) {
|
} catch (\UnexpectedValueException $e) {
|
||||||
|
Reference in New Issue
Block a user