summaryrefslogtreecommitdiff
path: root/ext/ftp/tests
Commit message (Collapse)AuthorAgeFilesLines
* FTP: Disallow direct `FTPConnection` constructionAyesh Karunaratne2020-12-231-0/+15
| | | | | | | Similar to other resource to object migrations, `FTPConnection` class is not allowed to be constructed with `new FTPConnection`. Related to b4503fbf882e490f16d85915e83173bd1e414e84. Closes GH-6533.
* waitpid in ftp server testsNikita Popov2020-10-231-6/+5
| | | | | This is not relevant right now, but ensures consistent order if the tests are repeated.
* Fix pasv_port determinationNikita Popov2020-10-231-1/+1
| | | | | Apparently the ftp server is also used by ext/standard/tests/streams, and only that part actually uses pasv.
* Use ephemeral port in ftp testsNikita Popov2020-10-232-25/+13
| | | | And enable them to run in parallel.
* Remove unused pasv_listen() functionNikita Popov2020-10-221-30/+0
|
* Convert FTP resource to objectSara Golemon2020-10-213-67/+73
|
* Consolidate the usage of "either" and "one of" in error messagesMáté Kocsis2020-09-202-2/+2
| | | | Closes GH-6173
* Promote warnings to exceptions in ext/ftpMáté Kocsis2020-08-315-59/+101
| | | | Closes GH-6054
* Reindent phpt filesNikita Popov2020-02-031-524/+524
|
* Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-171-1/+1
| | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* Fix #78880: Final spelling fixesMáté Kocsis2020-01-162-3/+3
|
* Convert fetch_resource warnings into TypeErrorsNikita Popov2019-06-031-132/+199
| | | | | More type checks that are not part of zpp and should generate a TypeError in PHP 8.
* Merge branch 'PHP-7.4'Nikita Popov2019-03-251-2/+10
|\
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-03-251-2/+10
| |\
| | * Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-03-251-2/+10
| | |\
| | | * Fix bug #77680: Correctly implement recursive mkdir on FTP streamVlad Temian2019-03-251-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the root directory was missing, an extra CWD without arguments was made. Also, the MKD contained an empty string. Now the CWD will use / and MKDs will be issued starting from the root directory.
| | | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-156-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | | * Trim trailing whitespace in *.phptPeter Kokot2018-10-143-4/+4
| | | |
| | * | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-158-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | * | Trim trailing whitespace in *.phptPeter Kokot2018-10-142-2/+2
| | | |
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-03-159-18/+18
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
| * | | Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-159-18/+18
| | | |
* | | | Adjust tests for zpp TypeError changeNikita Popov2019-03-114-186/+6
|/ / /
* | | Implement fine-grained conflict handlingNikita Popov2019-02-201-0/+1
| | | | | | | | | | | | | | | | | | Tests can specify conflict keys, either in --CONFLICTS-- or a per-directory CONFLICTS file. Non-conflicting tests may be run in parallel.
* | | Expand FTP delete basic test with "unknown file" coverageWard Cappelle2019-02-102-5/+21
| | | | | | | | | | | | | | | | | | | | | A port of the original https://github.com/phpcommunity/phptestfest-php-src/pull/148 pull request, created earlier during #PHPTestFest (User Group: PHP-WVL & PHPGent). Expands the existing FTP delete command test with coverage for deletion of non-existing files (which returns a 550 status code).
* | | Ignore getaddrinfo failed messageMizunashi Mana2018-11-081-1/+1
| | |
* | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-158-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | | Trim trailing whitespace in *.phptPeter Kokot2018-10-142-2/+2
|/ /
* | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2018-09-041-16/+28
|\ \ | |/
| * Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-09-041-17/+29
| |\
| | * Fixed bug #73457Ville Hukkamaki2018-09-041-16/+28
| | | | | | | | | | | | Correctly report errors when opening FTP data connection.
* | | Merge branch 'PHP-7.2'Nikita Popov2018-03-231-1/+1
|\ \ \ | |/ /
| * | Add missing skip prefix for some SKIPIF messagesatvoicu2018-03-231-1/+1
| | |
* | | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-202-2/+2
| | | | | | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | | Test more functions of ftpGabriel Caruso2018-02-1910-1/+205
| | |
* | | Increase ext/ftp coverageGabriel Caruso2018-02-063-10/+33
| | |
* | | Use int instead of integer in type errorsGabriel Caruso2018-02-042-3/+3
| | | | | | | | | | | | | | | | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
* | | convert spaces to tabs in ext/ftp/tests/server.incMichael Kliewe2017-10-281-14/+14
| | |
* | | Add tests for ftp_renameMichael Kliewe2017-10-282-5/+34
| | |
* | | Add test for ftp functions with bogus resourceMichael Paul2017-09-122-0/+152
| | |
* | | Refactor ftp_append test to clean temporary filesMichael Paul2017-09-121-7/+17
| | |
* | | Merge branch 'PHP-7.2'Nikita Popov2017-08-022-1/+54
|\ \ \ | |/ /
| * | Add ftp_append to create a new file or append data to an existing file (RFC959)Andreas Treichel2017-08-022-1/+54
| | |
* | | Make transfer mode optional, set default to binaryAndreas Treichel2017-07-252-19/+15
|/ /
* | Test ftp_ssl_connect() function : error conditionschance garcia2017-06-191-0/+51
| | | | | | | | | | | | | | test timeout warning ensure connection fails with invalid hostname test invalid parameter types test exceeds expected number of parameters
* | ftp_mlsd(): Parse the MLSD responseAndreas Treichel2017-02-173-9/+101
| |
* | Merge branch 'PHP-7.1'Nikita Popov2017-02-161-9/+23
|\ \ | |/
| * Make the ftp and stream tests more reliable.Mitch Hagstrand2017-02-161-9/+23
| | | | | | | | | | | | The tests can sometimes fail because it chooses a passive port for ftp that is already in use. This makes the test attempt multiple times to find a free port.
* | FTP: implement MLSD for structured listing of directories, decribed at ↵Andreas Treichel2017-01-294-0/+96
|/ | | | https://tools.ietf.org/html/rfc3659
* Fix FTP tests for Travis CI.Mitch Hagstrand2017-01-091-1/+2
| | | | | This suppresses the errors from stream_socket_server() until server.inc will not make anymore attempts.