[Finder] Marked test skipped when ftp stream wrapper is not available

This commit is contained in:
François-Xavier de Guillebon 2014-04-16 11:24:56 +02:00
parent d56ea768cc
commit f35fc818d1
1 changed files with 4 additions and 0 deletions

View File

@ -824,6 +824,10 @@ class FinderTest extends Iterator\RealIteratorTestCase
public function testNonSeekableStream()
{
if (!in_array('ftp', stream_get_wrappers())) {
$this->markTestSkipped(sprintf('Unavailable stream "%s".', 'ftp'));
}
try {
$i = Finder::create()->in('ftp://ftp.mozilla.org/')->depth(0)->getIterator();
} catch (\UnexpectedValueException $e) {