[Finder] Marked test skipped when ftp stream wrapper is not available
This commit is contained in:
parent
d56ea768cc
commit
f35fc818d1
@ -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