Project

General

Profile

Bug #84653

Updated by Tim Schreiner about 6 years ago

When the yaml extension for PHP is loaded, the following unit test will fail 
 _TYPO3\CMS\Form\Tests\Unit\Mvc\Configuration\YamlSourceTest::loadThrowsExceptionIfFileToLoadIsNotValidYamlUsePhpExtensionParser_ 

 The unit test is skipped when the yaml extension is not loaded. When it is loaded, that constructor for class YamlSource is set to be skipped in the mock object. But the constructor contais the check, if PHP yaml extension should be used. Because the yaml extension will not be used for parsing, If this is always false. This end up in false, the test returns an incorrect exception. 

 If constructor is loaded, no exception will be thrown because the invalid yaml file will be successful parsed by yaml_parse(). yaml_parse. 
 So the test will not work either way with loaded PHP yaml extension and current fixture for invalid yaml.

Back