42 Commits (3cdca37e8588d262efbb3b589f8a68eea73738a2)

Author SHA1 Message Date
Jordi Boggiano 6da38f83a0
Add parameter types to all the things 2 years ago
Alexander Schranz e9b60580f5
Add return types to tests (#10) 2 years ago
Jordi Boggiano abdc6893a6
Add void types where no return statement is present 2 years ago
Jordi Boggiano 6ed3aeb343
Remove setExpectedException wrapper 3 years ago
Jordi Boggiano ffd62795bc
Get rid of all the ->at() mock invocations 3 years ago
Jordi Boggiano 2a771dfb2d
Update PHPUnit to 8.5 3 years ago
Martin Herndl 2992e8651a
Add types to `Util` tests (#10228) 3 years ago
Jordi Boggiano cc81f5bac3
Fix support for UNC paths in normalizePath, refs #9993 3 years ago
Jordi Boggiano d942c65e0c
Fix more warnings 4 years ago
johnstevenson 8d9b822413 Add messages to junction tests to see failures 5 years ago
Gabriel Caruso 2a13bb2649 Fixes from PHPStan (#7687)
* fix docblocks

* remove redundant conditional

* fix wrong variable name

* fix wrong namespaces

* add missing private members

* remove unused/redundant arguments

* move testcase class

* exclude TestCase.php

* Tweak RuleWatchGraph type hints

* Tweak doc comment
6 years ago
Jordi Boggiano c8aea719b1 CS fixes 7 years ago
Gabriel Caruso a4b220273e Refactoring Tests (#6849) 7 years ago
Christian Ramelow f178c340e9 Fixed tests. 7 years ago
Christian Ramelow 39d8104897 Introduces a new method `copy()`.
Some packages, e. g. `tm/tooly-composer-script`, are using the composer classes to e. g. create symlinks or perform other file operations. While there's only a `copyThenRemove()` method this commit introduces a new `copy()` method. `copy()` behaves the same as the copy part of `copyThenRemove()` did with one exception: it returns `true` on success and `false` on failure. Copying a directory may lead to a `false`, while the whole directory or some of its files couldn't been copied. To ensure backwards compatibility `copyThenRemove()` calls `copy()` now. This commit also adds the necessary tests.
7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano ff7daf0bd4 Fix handling of paths on windows when cwd is root of drive, fixes #5554 8 years ago
Jordi Boggiano 4f0f8779cb Add filesystem tests for the static shortest path, refs #5174 8 years ago
Niels Keurentjes b71c67239d Made NTFS junction detection more reliable and added unit tests for the junction functions. 9 years ago
Rob Bast adf3b956d0 try to use unique test directories
any tests that use the filesystem should have their own unique directory, as we run our test suite in parallel and
cleanup of tests (removing directories) should not interfere with currently running tests
9 years ago
Alexander Loutsenko fa5de786ff clean garbage dirs in tmp after composer tests #4694 9 years ago
gmsantosxl 84c9c30b63 Remove extra '/' when findShortestPath $from is a directory 9 years ago
Adrian Dragus 7834dacb88 Forgot to remove the actual calls 9 years ago
Adrian Dragus 96ff1c5014 Use PHPUnit pre-conditions
See https://phpunit.de/manual/current/en/incomplete-and-skipped-tests.html#incomplete-and-skipped-tests.requires.tables.api
9 years ago
hakre 03b634d114 Prevent fatal error on missing symlink() function in tests
The testsuite didn't run through for me because the php symlink() function
was missing.

It is only available on Windows Visa/Server 2008 or higher.

This commit fixes the issue by checking if the method exists, and if not,
marks the test as skipped because of a non-matching precondition.
9 years ago
hakre 343d0b5af2 added test removing directory with trailing slash that is symlinked
#3144
#3157
10 years ago
hakre ed507dec9f added test unlinking directory
#3157
10 years ago
Jordi Boggiano e2671b6510 Add test and fix patch for #2304, refs #2341 11 years ago
Martin Hasoň 3c0a620ad5 Fixed path analysis 11 years ago
Jordi Boggiano 38917c2047 Add parallel build to travis script 11 years ago
Martin Hasoň 81e41bac4b Fixed the Filesystem methods for a directory with a name that is a substring of a another directory 11 years ago
Martin Hasoň 97f67c09e4 Fix normalization of relative paths 11 years ago
Jordi Boggiano f744ec16f5 Fix normalization of relative paths going up a few dirs, fixes #1759 11 years ago
Martin Hasoň 0851ef1afb Fixed behaviour of Filesystem::findShortestPath[Code] for paths with up-level references 11 years ago
Jordi Boggiano 514a3cde77 CS fixes 12 years ago
Galymzhan 69f2230a4c add public method Filesystem#size 12 years ago
Benjamin Eberlei d26932cc7e Fallback to PHP early if proc_open not allowed. 12 years ago
Jordi Boggiano d71bed19fc Add more windows paths tests 12 years ago
Martin Hasoň 36d9513d7b Changed parameter name in Filesystem::findShortestPath 12 years ago
Martin Hasoň 1f8c9eeb6c Added parameter $inDirectory to method Filesystem::findShortestPath 12 years ago
Jordi Boggiano edf93f1fcc Fix test & behavior 12 years ago
Martin Hasoň f026e2a0eb Added tests for FileDownloader and ArchiveDownloader 13 years ago