I am getting a testing failure from the Serialization Component when running PHPUnit tests.
Environment:
PHP: 7.1.5 OS: Linux - Alpine v3.4.6 Drupal: 8.3.2
Yaml extension installed via:
pecl install yaml-2.0.0
Running tests:
cd core ../vendor/bin/phpunit --testsuite=unit -v
Results in:
There was 1 failure: 1) Drupal\Tests\Component\Serialization\YamlTest::testYamlFiles with data set #178 ('/home/app/src/docroot/core/mo...es.yml') /home/app/src/docroot/core/modules/config/tests/config_test/config/install/config_test.types.yml Failed asserting that two arrays are equal. --- Expected +++ Actual @@ @@ Array ('array' => Array ()'boolean' => true - 'exp' => 1.2E+34 - 'float' => 3.14159 + 'exp' => 1.2000000000000467E+34 + 'float' => 3.1415900000001784'float_as_integer' => 1.0'hex' => 12'int' => 99'octal' => 509'string' => 'string''string_int' => '1' ) /home/app/src/docroot/core/tests/Drupal/Tests/Component/Serialization/YamlTest.php:71
Looks like an error relating to precision.
This could potentially be an issue with the compiled yaml
and yaml-dev
packages used when compiling the Yaml
PHP extension. I will verify against a different operation system (Debian).
Any one else hitting this failure?