Skip to content

Commit e9f783f

Browse files
MaxSemnikic
authored andcommitted
Migrate skip checks to --EXTENSIONS--, p3
For rationale, see php#6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
1 parent 33f938b commit e9f783f

File tree

566 files changed

+1177
-1181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

566 files changed

+1177
-1181
lines changed

ext/ftp/tests/001.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
FTP login
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
require 'server.inc';

ext/ftp/tests/002.phpt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
--TEST--
22
FTP login (SSL)
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
6+
openssl
37
--SKIPIF--
48
<?php
5-
$ssl = 1;
6-
require 'skipif.inc';
79
if (!function_exists("ftp_ssl_connect")) die("skip ftp_ssl is disabled");
810
?>
911
--FILE--

ext/ftp/tests/003.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
FTP cwd
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
require 'server.inc';

ext/ftp/tests/004.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
FTP with bogus parameters
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
require 'server.inc';

ext/ftp/tests/005.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
FTP with bogus server responses
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
$bogus = 1;

ext/ftp/tests/007.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ FTP with bogus resource
33
--CREDITS--
44
Michael Paul da Rosa <michael [at] michaelpaul [dot] com [dot] br>
55
PHP TestFest Dublin 2017
6-
--SKIPIF--
7-
<?php
8-
require 'skipif.inc';
9-
?>
6+
--EXTENSIONS--
7+
ftp
8+
pcntl
109
--FILE--
1110
<?php
1211
$ftp = tmpfile();

ext/ftp/tests/bug27809.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
Bug #27809 (ftp_systype returns null)
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
$bug27809=true;

ext/ftp/tests/bug37799.phpt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
--TEST--
22
Bug #37799 (ftp_ssl_connect() falls back to non-ssl connection)
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
6+
openssl
37
--SKIPIF--
48
<?php
5-
$ssl = 1;
6-
require 'skipif.inc';
79
if (!function_exists("ftp_ssl_connect")) die("skip ftp_ssl is disabled");
810
?>
911
--FILE--

ext/ftp/tests/bug39458-2.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
Bug #39458 (ftp_nlist() returns false on empty directories (other server behaviour))
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
$bug39458=1;

ext/ftp/tests/bug39458.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
Bug #39458 (ftp_nlist() returns false on empty directories)
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
require 'server.inc';

ext/ftp/tests/bug39583-2.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
Bug #39583 (FTP always transfers in binary mode)
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
require 'server.inc';

ext/ftp/tests/bug39583.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
Bug #39583 (FTP always transfers in binary mode)
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
$bug39583=1;

ext/ftp/tests/bug7216-2.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
Bug #7216 (ftp_mkdir returns nothing (2))
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
require 'server.inc';

ext/ftp/tests/bug7216.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
Bug #7216 (ftp_mkdir returns nothing)
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
$bug7216=true;

ext/ftp/tests/dead-resource.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
--TEST--
22
Attempt to use a closed FTPConnection
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
66
--FILE--
77
<?php
88
require 'server.inc';

ext/ftp/tests/filesize_large.phpt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
--TEST--
22
Verify php can handle filesizes >32bit
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
36
--SKIPIF--
47
<?php
5-
require 'skipif.inc';
68
if (2147483647 == PHP_INT_MAX) {
79
die('skip 64-bit only');
810
}

ext/ftp/tests/ftp_alloc_basic1.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ Testing ftp_alloc returns true
33
--CREDITS--
44
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
55
#testfest PHPSP on 2009-06-20
6-
--SKIPIF--
7-
<?php
8-
require 'skipif.inc';
9-
?>
6+
--EXTENSIONS--
7+
ftp
8+
pcntl
109
--FILE--
1110
<?php
1211
require 'server.inc';

ext/ftp/tests/ftp_alloc_basic2.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ Testing ftp_alloc returns true
33
--CREDITS--
44
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
55
#testfest PHPSP on 2009-06-20
6-
--SKIPIF--
7-
<?php
8-
require 'skipif.inc';
9-
?>
6+
--EXTENSIONS--
7+
ftp
8+
pcntl
109
--FILE--
1110
<?php
1211
require 'server.inc';

ext/ftp/tests/ftp_append.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
ftp_append() create new file and append something
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
6-
?>
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
76
--FILE--
87
<?php
98
require 'server.inc';

ext/ftp/tests/ftp_chmod_basic.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ Testing ftp_chmod returns file mode
33
--CREDITS--
44
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
55
#testfest PHPSP on 2009-06-20
6-
--SKIPIF--
7-
<?php
8-
require 'skipif.inc';
9-
?>
6+
--EXTENSIONS--
7+
ftp
8+
pcntl
109
--FILE--
1110
<?php
1211
require 'server.inc';

ext/ftp/tests/ftp_constructor.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
--TEST--
22
Attempt to instantiate an FTPConnection directly
3-
--SKIPIF--
4-
<?php
5-
require 'skipif.inc';
3+
--EXTENSIONS--
4+
ftp
5+
pcntl
66
--FILE--
77
<?php
88

ext/ftp/tests/ftp_delete.phpt

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ Testing ftp_delete basic functionality
44
Gabriel Caruso ([email protected])
55
Contributed by Ward Cappelle <[email protected]>
66
User Group: PHP-WVL & PHPGent #PHPTestFest
7-
--SKIPIF--
8-
<?php require 'skipif.inc'; ?>
7+
--EXTENSIONS--
8+
ftp
9+
pcntl
910
--FILE--
1011
<?php
1112
require 'server.inc';

ext/ftp/tests/ftp_exec_basic.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ Testing ftp_exec returns true
33
--CREDITS--
44
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
55
#testfest PHPSP on 2009-06-20
6-
--SKIPIF--
7-
<?php
8-
require 'skipif.inc';
9-
?>
6+
--EXTENSIONS--
7+
ftp
8+
pcntl
109
--FILE--
1110
<?php
1211
require 'server.inc';

ext/ftp/tests/ftp_fget_basic.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
FTP ftp_fget file for both binary and ASCII transfer modes
33
--CREDITS--
44
Nathaniel McHugh
5-
--SKIPIF--
6-
<?php
7-
require 'skipif.inc';
8-
?>
5+
--EXTENSIONS--
6+
ftp
7+
pcntl
98
--FILE--
109
<?php
1110
require 'server.inc';

ext/ftp/tests/ftp_fget_basic1.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ Testing ftp_fget ignore autoresume if autoseek is switched off
33
--CREDITS--
44
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
55
#testfest PHPSP on 2009-06-20
6-
--SKIPIF--
7-
<?php
8-
require 'skipif.inc';
9-
?>
6+
--EXTENSIONS--
7+
ftp
8+
pcntl
109
--FILE--
1110
<?php
1211
require 'server.inc';

ext/ftp/tests/ftp_fget_basic2.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ Testing ftp_fget autoresume
33
--CREDITS--
44
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
55
#testfest PHPSP on 2009-06-20
6-
--SKIPIF--
7-
<?php
8-
require 'skipif.inc';
9-
?>
6+
--EXTENSIONS--
7+
ftp
8+
pcntl
109
--FILE--
1110
<?php
1211
require 'server.inc';

ext/ftp/tests/ftp_fget_basic3.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ Testing ftp_fget resume parameter
33
--CREDITS--
44
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
55
#testfest PHPSP on 2009-06-20
6-
--SKIPIF--
7-
<?php
8-
require 'skipif.inc';
9-
?>
6+
--EXTENSIONS--
7+
ftp
8+
pcntl
109
--FILE--
1110
<?php
1211
require 'server.inc';

ext/ftp/tests/ftp_fput.phpt

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
Testing ftp_fput basic functionality
33
--CREDITS--
44
Gabriel Caruso ([email protected])
5-
--SKIPIF--
6-
<?php require 'skipif.inc'; ?>
5+
--EXTENSIONS--
6+
ftp
7+
pcntl
78
--FILE--
89
<?php
910
require 'server.inc';

ext/ftp/tests/ftp_get_basic.phpt

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
FTP ftp_get file for both binary and ASCII transfer modes
33
--CREDITS--
44
Nathaniel McHugh
5-
--SKIPIF--
6-
<?php
7-
require 'skipif.inc';
8-
?>
5+
--EXTENSIONS--
6+
ftp
7+
pcntl
98
--FILE--
109
<?php
1110
require 'server.inc';

ext/ftp/tests/ftp_get_option.phpt

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
Testing ftp_get_option basic functionality
33
--CREDITS--
44
Gabriel Caruso ([email protected])
5-
--SKIPIF--
6-
<?php require 'skipif.inc'; ?>
5+
--EXTENSIONS--
6+
ftp
7+
pcntl
78
--FILE--
89
<?php
910
require 'server.inc';

0 commit comments

Comments
 (0)