File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -24,26 +24,38 @@ protected function setUp(): void
24
24
25
25
/**
26
26
* @group network
27
+ * @group integration
27
28
*/
28
29
public function testRewindOnFtp ()
29
30
{
30
- $ i = new RecursiveDirectoryIterator ('ftp://test.rebex.net/ ' , \RecursiveDirectoryIterator::SKIP_DOTS );
31
+ if (!getenv ('INTEGRATION_FTP_URL ' )) {
32
+ self ::markTestSkipped ('INTEGRATION_FTP_URL env var is not defined. ' );
33
+ }
34
+
35
+ $ i = new RecursiveDirectoryIterator (getenv ('INTEGRATION_FTP_URL ' ).\DIRECTORY_SEPARATOR , \RecursiveDirectoryIterator::SKIP_DOTS );
31
36
32
37
$ i ->rewind ();
33
38
34
- $ this ->assertTrue ( true );
39
+ $ this ->expectNotToPerformAssertions ( );
35
40
}
36
41
37
42
/**
38
43
* @group network
44
+ * @group integration
39
45
*/
40
46
public function testSeekOnFtp ()
41
47
{
42
- $ i = new RecursiveDirectoryIterator ('ftp://test.rebex.net/ ' , \RecursiveDirectoryIterator::SKIP_DOTS );
48
+ if (!getenv ('INTEGRATION_FTP_URL ' )) {
49
+ self ::markTestSkipped ('INTEGRATION_FTP_URL env var is not defined. ' );
50
+ }
51
+
52
+ $ ftpUrl = getenv ('INTEGRATION_FTP_URL ' );
53
+
54
+ $ i = new RecursiveDirectoryIterator ($ ftpUrl .\DIRECTORY_SEPARATOR , \RecursiveDirectoryIterator::SKIP_DOTS );
43
55
44
56
$ contains = [
45
- ' ftp://test.rebex.net ' .\DIRECTORY_SEPARATOR .'pub ' ,
46
- ' ftp://test.rebex.net ' .\DIRECTORY_SEPARATOR .'readme.txt ' ,
57
+ $ ftpUrl .\DIRECTORY_SEPARATOR .'pub ' ,
58
+ $ ftpUrl .\DIRECTORY_SEPARATOR .'readme.txt ' ,
47
59
];
48
60
$ actual = [];
49
61
You can’t perform that action at this time.
0 commit comments