Skip to content

Commit

Permalink
fix Finder test using the ftp wrapper by switching the server being used
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jul 22, 2024
1 parent f51cff4 commit 0724c51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Iterator/RecursiveDirectoryIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function setUp(): void
*/
public function testRewindOnFtp()
{
$i = new RecursiveDirectoryIterator('ftp://speedtest:[email protected]/', \RecursiveDirectoryIterator::SKIP_DOTS);
$i = new RecursiveDirectoryIterator('ftp://test.rebex.net/', \RecursiveDirectoryIterator::SKIP_DOTS);

$i->rewind();

Expand All @@ -39,11 +39,11 @@ public function testRewindOnFtp()
*/
public function testSeekOnFtp()
{
$i = new RecursiveDirectoryIterator('ftp://speedtest:[email protected]/', \RecursiveDirectoryIterator::SKIP_DOTS);
$i = new RecursiveDirectoryIterator('ftp://test.rebex.net/', \RecursiveDirectoryIterator::SKIP_DOTS);

$contains = [
'ftp://speedtest:[email protected]'.\DIRECTORY_SEPARATOR.'test100Mb.db',
'ftp://speedtest:[email protected]'.\DIRECTORY_SEPARATOR.'test100k.db',
'ftp://test.rebex.net'.\DIRECTORY_SEPARATOR.'pub',
'ftp://test.rebex.net'.\DIRECTORY_SEPARATOR.'readme.txt',
];
$actual = [];

Expand Down

0 comments on commit 0724c51

Please sign in to comment.