"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Util/Xml.php" between
phpunit-9.0.0.tar.gz and phpunit-9.0.1.tar.gz

About: PHPUnit is a unit testing software framework for software written in PHP.

Xml.php  (phpunit-9.0.0):Xml.php  (phpunit-9.0.1)
skipping to change at line 222 skipping to change at line 222
$arguments = $element->childNodes->item(0)->childNodes ; $arguments = $element->childNodes->item(0)->childNodes ;
$constructorArgs = []; $constructorArgs = [];
foreach ($arguments as $argument) { foreach ($arguments as $argument) {
if ($argument instanceof DOMElement) { if ($argument instanceof DOMElement) {
$constructorArgs[] = self::xmlToVariable($argument); $constructorArgs[] = self::xmlToVariable($argument);
} }
} }
try { try {
\assert(\class_exists($className));
$variable = (new \ReflectionClass($className))->newInsta nceArgs($constructorArgs); $variable = (new \ReflectionClass($className))->newInsta nceArgs($constructorArgs);
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart
} catch (\ReflectionException $e) { } catch (\ReflectionException $e) {
throw new Exception( throw new Exception(
$e->getMessage(), $e->getMessage(),
(int) $e->getCode(), (int) $e->getCode(),
$e $e
); );
} }
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)