Download the PHP package staabm/phpunit-cross-os without Composer
On this page you can find all versions of the php package staabm/phpunit-cross-os. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package phpunit-cross-os
PHPUnit Tools to ease cross operating system Testing
non-invasive method
A method which makes cross-os assertions obvious.
make assertEquals*
comparisons end-of-line (aka PHP_EOL
) character agnostic
Make use of CrossOsAgnosticComparator
to make your regular assert*
-calls aware of EolAgnosticString
as a expected type.
make assertEquals*
comparisons directory-separator (aka DIRECTORY_SEPARATOR
) character agnostic
Make use of CrossOsAgnosticComparator
to make your regular assert*
-calls aware of DirSeparatorAgnosticString
as a expected type.
make assertEquals*
comparisons cross os agnostic
Make use of CrossOsAgnosticComparator
to make your regular assert*
-calls aware of CrossOsAgnosticString
as a expected type.
invasive method
A method to test cross-os related stuff using php builtin assertions.
You may not like it, because it makes your test feels kind of magical as your assertEquals()
calls will behave differently based on the given parameters.
make assertEquals*
comparisons end-of-line (aka PHP_EOL
) character agnostic
Make use of EolAgnosticStringComparator
to make your regular assert*
-calls succeed even if the compared string differ in end-of-line characters:
make assertEquals*
comparisons directory-separator (aka DIRECTORY_SEPARATOR
) character agnostic
Make use of DirSeparatorAgnosticStringComparator.php
to make your regular assert*
-calls succeed even if the compared string differ in directory-separation characters:
make assertEquals*
comparisons cross os agnostic
Make use of CrossOsAgnosticStringComparatorFunctionalTest.php
to make your regular assert*
-calls succeed even if the compared string differ in directory-separation and/or end-of-line characters:
CrossOsAgnosticStringComparatorFunctionalTest
essentially provides all features of DirSeparatorAgnosticStringComparator
and EolAgnosticStringComparator
combined in a single class.