This deals with #142 by adding a polyfil for the ctype functions
instead of failing an install.
The only downside for end users is that their version is slightly slower
if the run without ctype. But it does allow them to run it.
* Changes location of providers in the SystemNodeProviderTest
They are now grouped at the bottom of the class.
* Adds logic to SystemNodeProviderTest.
* Changes call to `file_get_contents` SystemNodeProvider so it can be
mocked.
* Changes SystemNodeProviderTest so native PHP functions are mocked
instead of the class under test.
* Changes SystemNodeProviderTest so "\n" is used instead of PHP_EOL
As the (input or output) of the tests is not system dependant it does
not make sense to use PHP_EOL. All of these instance have been
replaced for the sake of readability and stating intent more clearly.
* Adds dataprovider to SystemNodeProvider main test for input
variations.
* Adds OS to SystemNodeProviderTest dataprovider for Linux fail
scenario.
* Adds test for SystemNodeProvider to ensure invalid values are not
accepted.
* Changes names of dataproviders in SystemNodeProviderTest for
consistency.
* Changes SystemNodeProviderTest by grouping dataproviders together.
* Changes method in SystemNodeProviderTest to use the provided mock
functions.
* Fixes PSR-2 coding conventions in SystemNodeProviderTest.
* Minor change to SystemNodeProviderTest based on review.
A backward-incompatible change was introduced in codeception/aspect-mock
version 2.1, causing tests to generate errors. There is no need to
update the tests in the 3.x series of ramsey/uuid, so this change
restricts aspect-mock to <2.1.
Linux offers a sysfs interface to the macaddresses of the system network
interfaces without calling exec.
This enables stable system based UUID generation even on docker images
like php:7